Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: Agent007 on 4 April 2003, 09:49
-
Hi all,
I have an entry of the update-zapper script in crontab. It is set to update itself at 9 in the morning everyday. But since I'm on a dial-up, the system is not connected to the net at that time. What happens if the job is not run? Will it run at a later stage? ie: when the system is connected to the net?
thanks,
007
-
Nyet. It will run next time it hits 9 o'clock, I belive. Unless you get connected while it's trying to get the file.
-
So how is it possible to make it run whenever the internet connection is detected?
thanks,
007
-
ummm... is there a program that is running when dial up is connected (i've never had dialup in linux so i dont know)
-
well if there is one program that is always running when the dial up is connected then you could do somethin like make a bash script like this:
that would see if there is any "kppp" running and if there is 1 kppp then it would execute "update-zapper_command" but thats only if 1 kpp is running, i'm not sure how to make it check to see if there is more than 0 which is what would be ideal.
-
Actually, I think there's a daemon which runs missed cron jobs... I forgot the name. I'll find it, though.