Operating Systems > Linux and UNIX
Missed Cron Jobs
Agent007:
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
TheQuirk:
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.
Agent007:
So how is it possible to make it run whenever the internet connection is detected?
thanks,
007
Master of Reality:
ummm... is there a program that is running when dial up is connected (i've never had dialup in linux so i dont know)
Master of Reality:
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:
--- Code: ---
--- End code ---
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.
Navigation
[0] Message Index
[#] Next page
Go to full version