help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] set time


From: Greg Wooledge
Subject: Re: [Help-bash] set time
Date: Fri, 14 Sep 2012 12:18:48 -0400
User-agent: Mutt/1.4.2.3i

On Fri, Sep 14, 2012 at 04:10:34PM +0000, address@hidden wrote:
>  I often have wild drifts in my virtual machines, the sort that ntp
> can't deal with and internet access is quite often not available
> (thus, no ntpdate either).

I don't know much about virtual computing.  Can't you at least sync the
virtual machines to the host OS's clock?

The rest of the message, untouched, because you forgot to copy the
mailing list:

> So I use a script that shifts the time by one second or more every few
> or several seconds (depending on the situation) based on my algorithm
> (which would become too mathematically complicated to me, at least for
> the time I afford to give it, if some of its steps themselves take an
> unpredictable *and* non-negligible number of milliseconds to run). I
> use date -s "$intv seconds" (as one your replies suggested) and, while
> it's far from perfect, it's making the situation much more manageable,
> as at least I'm running just one command.
> 
> Certainly, if you could help me find another approach to this, that
> would be great.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]