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

Cron Environment

Status
Not open for further replies.

nkm

Programmer
May 27, 2001
45
US
Hi

How can we set the environment for the cron jobs?

The cron daemon spawns a shell (in which the cron job executes) with the same user permissions as the one who made the cron entries but doesn't take his environment settings provided in the .profile.

thanks!
 
Set the required variables within the script you are calling, or issue a . /.profile as part of the script. Note that the space between . and / is important. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top