Cron job not working correctly.
Hello all,
I tried to run a script every night at 12:00AM via a cron job. This is how I set it up in the crontab: Code:
(root)-(jobs:0)-(~) Code:
(root)-(jobs:0)-(~) Thank you for any and all help! |
Quote:
Code:
* 0 * * * /root/scripts/systeminfo.sh Code:
0 0 * * * /root/scripts/systeminfo.sh |
Hello,
I have made the changes and will await tonight and see but I'm sure it will work. Thank you for your time and help very much!! |
No problem.
But please note that you don't have to wait until tonight to see if it works :). Change the time the script is supposed to run to a nearer time. Just FYI, you first crontab entry was sending you an email every minute because that's what the * sign does. If you type Code:
* * * * * /path/to/your/script On the other hand, Code:
45 12 * * * /path/to/your/script You may want to take a look at this link for further details on using cron. Have a great day! |
All times are GMT -5. The time now is 08:56 AM. |