Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cron and csh

Status
Not open for further replies.

davez

Technical User
Jul 24, 2002
18
0
0
Hi, i am using a csh script backup our our server, its csh because some of the commmands used by the vendors api require this. I can run the script from the command line as root as the .login file calls source .cshrc which is located in the home dir. This works fine running the script from the command line ./backup.csh but if i try scheduling this from crontab i cant get the script to work, i assume something to do with not being able to use the .cshrc. Any ideas?

Thanks
D
 
Make sure all PATH variables etc are defined explicitly, and that your csh script is used to execute the job - by default cron uses the Bourne shell I believe.

The internet - allowing those who don't know what they're talking about to have their say.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top