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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crontab Issue

Status
Not open for further replies.

varajan

Technical User
Oct 5, 2001
42
IN
Hi,

I need to execute a shell script which in turn call another few scripts. In addition the scripts also uses variable defined in the .profile. However, when I set up a cron job to execute the script, the processes doesn't get executed, where as any echo statement present is properly displayed.

Any ideas / suggestions ?

Rajan
 
Cron doesn't have an environment of it's own. Therefore you may need to execute the appropriate .profile within your scripts or use the construct su - <user> -c &quot;<command>&quot; to execute it/them within your crontab. Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top