• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

Regarding Cron job in Unix/Linux

Hi,

Is there a way to prevent a cron job from stopping when the server reboots. Because sometimes system people are rebooting without notice and the job is not getting done.
Or

If the server reboots, can it automatically start the job again

Any further inputs/suggestions are welcome....
0
new_perl_user
Asked:
new_perl_user
1 Solution
 
meko72Commented:
0
 
new_perl_userAuthor Commented:
Thank you for the link. So it says that @reboot variable will invoke this script whenever the system reboots.

But does it have the capacity to take over from where it stopped the script or  will it start executing the script from the start again.
0
 
meko72Commented:
It will start the script again.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
new_perl_userAuthor Commented:
could we get an alert message through this like an email:

Cron started after the reboot.  

so that  I can go and check if everything is running as expected. Because last time system people rebooted and did not update me regarding reboot  and by the time I went to check  script created a mess.
0
 
hossamshaabanCommented:
you can do it in the second script that called while reboot.
0
 
gheistCommented:
You need to use anacron in place or together wit cron.
It does exactly what you want.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now