Saturday, 1 June 2013

How do I setup two cron jobs to run every night at 3:00 and 3:10?

How do I setup two cron jobs to run every night at 3:00 and 3:10?

I have an ubuntu home server running virtual box. I have virtual server running on that box that I am having problems with. For now I don't have time to troubleshoot the actual issue but I have found that restarting the server fixes the issue for at least 24 hours. So my quick fix is to restart the server each night.
Bottom line is that I want to run the following command at 3:00 am 7 days a week.
vboxmanage controlvm virtualpbx acpipowerbutton
at 3:05 each night I want to run the following command.
vboxmanage startvm virtualpbx -type headless
The best answer will give me step-by-step instructions for getting this done from launching the console to closing the console. I want to learn more of cron and the linux infrastructure but for now I don't have the time.
Thanks so much for your help.
Seth B Spearman

No comments:

Post a Comment