Big_Pc_Man
Group: Members
Posts: 86
Joined: July 2007 |
|
Posted: July 25 2007,17:32 |
|
Wow - MyCron is not happy with me! By the way thanks for all the help.
1. I have changed the crontab file to be 2 * * * * /opt/myscript.sh 2. myscript is:
/opt/wget -v --output-document=/opt/myscript.log http://www.mysite.com >> /opt/terminalout.log 2>&1
3. Ran the script from the terminal and it works fine. Everything goes to the proper place.
4. As su in aterminal: /usr/local/bin/MyCron &
response: [1] 2854 second response: Argument """" isn't numeric in sprintf at /usr/local/bin/MyCron line 73, <CT> line 1.
Argument /opt/ isn't numeric in sprintf at /usr/local/bin/MyCron line 73, <CT> line 1.
At this point the cpu is running at 100% so I killed 2854 to get the system back.
What the heck is going on?
-----------------------------------------
Well Ok another dumb mistake. There are 6 fields for the time trigger and I only had 5 in crontab.
-------------- Big_Pc_Man
|