Mailinglist Archive: opensuse (2831 mails)

< Previous Next >
Re: [SLE] Modifying a script for changing system-time.
  • From: Mike McMullin <mwmcmlln@xxxxxxxx>
  • Date: Wed, 12 Jul 2006 00:11:43 -0400
  • Message-id: <1152677504.16707.4.camel@xxxxxxxxxxxxxx>
On Tue, 2006-07-11 at 19:13 +0200, pelibali wrote:
> Hi,
> I have a perl-script to modify the system-time of my laptop.
> While I was connected to my university's broadband, I could run this
> via cron once per day. Now I have only dial-up at my home, so really
> can't determine whether I will be online, when this script runs. I
> would pretty much modify the script e.g. just to avoid errors mailed
> to me, that first it should check that we are online (dialed-in) or
> not and do setting the time only in the first case. My first idea was
> to ping e.g. or a similar always-on machine, but I
> didn't manage to interpret it.
> Does anyone have a few-line home-baked idea for such a task and would
> share it with me?

Less a script and more an idea. How about NTP? It will access a
proper time server.

Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at
Please read the FAQs: suse-linux-e-faq@xxxxxxxx

< Previous Next >