cron job question

I created a cron script that runs on the command line but not in crontab. What could be causing it to not run ?

I check the cron log and had this line..what does it mean ?

Feb 29 13:30:01 COM1 crond[24755]: (root) CMD /usr/local/cron/logs)

Please put the command in executables(Tick)..for example
'cp /path /newpath'
Please try

Sorry I dont understand. Put what command and where is executables ? I'm completely lost.

Hi dannyd,

Basically, just ensure that your script is executable first then place it in crontab.

eg. my script name is dailyreboot.sh
Edit crontab and specify running timing with your script name
# crontab -e

Editing mode, insert like
# to reboot server everyday
00 03 * * * /root/adm/bin/dailyreboot.sh 2&1> /dev/null

To save and exit
:wq!

You can check in your cron log, whether it get executed on specified time...

Hope this will help.

I did all that.

For some reason it executes fine on the command line but not as a crontab.

When I run it in the command line it says Interactive mode enabled. What does that mean ?