unable to schedule events through cron

hi,

Initially I logged in as root and edited the root file in crontab -e. Have scheduled to run a command at 00:34 daily and have redirected the .

The /var/adm/cron/log file got updated for the first time

CMD: /test/command >> /temp/test
> root 14906 c Fri Jan 11 00:34:00 EST 2008
< root 14906 c Fri Jan 11 00:34:00 EST 2008 rc=127

The test file was not updated
And now i wrote a small script tp execute the same above command.
and the /var/adm/cron/log file never get updated after the first time.

Even i tried to execute the simple echo commands through cron and redirected the output to text files but still that doesnt work

I have also stopped and started the cron but still it doesnt work.

Then i have edited the cron.allow file and given permission for user to execute. and scheduled teh event as user but still the log files not the redirected output files dosent update.

This means the cron is not running or is there some other problem?
Pls try to get the problem and reply

thanks

Hi

Please check the following things.
1) ps -ef | grep cron
An entry should be reflected.
2) The scripts you are running should have execute rights, if not then do
chmod 777 filename
3) Also check the mail,
# mail

Hope this one helps...
Let me know...

Checked for the above conditions.

1.The only possiblility is to stop and restart cron or to restart the system.

Does /temp exist?

/temp exists

I have a bit of time now so lets explain:

> < root 14906 c Fri Jan 11 00:34:00 EST 2008 rc=127

> The test file was not updated

rc=127 -> You have a problem can be : cannot fork, or return code from your shell

Start by checking you have a correct and all your program needs in your path! because there is big chance all its missing is that ( and so the error should be understood as:cant do because not found...)

Hi,

As i have mentioned that it was only for the first time i scheduled, it updated the /var/adm/cron/log with rc = 127
and later after that I tried by giving the correct path but still the

" Log files were never updated " - dont know why this happens??????

Even simple commands are not executing after that through cron.

I hope stoping and restarting of cron will do or resatring the system.

If any other possiblilties other than the above pls let me know

>Start by checking you have a correct and all your program needs in your path!
Sorry should have read:Start by checking you have a correct path set

The easiest way to see is tell us what and how you are trying to use cron