Re: Timeout for shell script
* Keith O'Connell <keith_oconnell@bigfoot.com>, 2001-04-26 16:29 +0200:
> Andre,
>
> > I have a shell script in /etc/ppp/ip-up.d/ that synchronizes the system
> > clock with time servers via rdate. Sometimes the servers can't be
> > reached, and the rest of my scripts are blocked. Is there a way to say:
> > "You have at most 10 seconds to complete this command, or fail"?
>
> When I asked in newsgroups about setting up rdate, I was howled at
> and told that I should not even consider rdate, but that i should use
> ntp. I do now and time setting is a problem of the past.
>
> Have a look at ntp - you may be attempting to solve the wrong problem!
Thanks... but still I'd like to know if it's possible to use a shell
script with a timeout, in general.
Andre Berger [andre.berger@topmail.de]
Reply to: