Question : Crontab not working on Sun Machine

Hi ,
When i execute Commands such as touch and mkdir from crontab ,it runs fine .But when i try to run tcsh scripts from crontab it fails doing nothing .
What might be the problem ????!!!!

Is the current tcsh might be a problem ???

What might be the possible problems and solution ?

Best Regards ,

Pankaj

Answer : Crontab not working on Sun Machine

cron uses sh to run all commands; Ensure that the scripts have
#!/usr/bin/tcsh
on the first line.

Plus cron does not use your standard environment, so you may have to specify or source environment variables in your scipt

Finally, cron sends any output and error messages to you as a mail message (unless you've explicitly redirected output to a log or to /dev/null), so check your mail for more details of the problem.
Random Solutions  
 
programming4us programming4us