crontab and a bash script
I've add the following via crontab -e:
Quote:
here is the shell script: Quote:
Quote:
start.sh runs fine from a command line Not sure what else to try :scratch::scratch: Thanks in advance. SeeFor |
Are all the scripts made executables? Try to look at the mail of the crontab owner (root), since any standard output or any standard error coming from a cron job (and not explicitly redirected to a file) is sent there. You may find some useful hint about what's coming up.
|
Quote:
Quote:
Today so hopefully tomorrow it will run :o Thanks for you help, with checking mail idea. How do I make it out to a file in crontab, so it would be easier to look for it? Thanks, Sif |
Quote:
Code:
/hunter/ngc/gather.sh or first cd to the directory Code:
cd /hunter/ngc Quote:
put it in your root directory and run it |
Thanks, I will cd to the directory and give that a try.
We make changes to the all the devices in our network druing 2300 to 0700. I need it to gather all the data every morning at 9:15 AM, then a php script compares the past two days and generate a report to management morning of all the changes. Thanks again |
Code:
/hunter/ngc/./gather.sh Code:
/hunter/ngc/gather.sh So just give the whole path to the command |
Quote:
Code:
15 9 * * * /hunter/ngc/start.sh >> $HOME/cron.log 2>&1 |
All times are GMT -5. The time now is 06:15 AM. |