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!

Shell Script and Cron

Status
Not open for further replies.

tdin

MIS
Jun 1, 1999
11
0
0
US
I wrote a shell script that can email an attachment from HPUX. I works fine when I manually run it. When I add it to the crontab, however, the attachment dosen't come through. I think I may have to set my profile in the script but I am not sure.
 
Yes you have to ... profile's never executed by cron.

Yours, Mauro
 
Do I just copy my .profile file into the script or is there some other way to do it?

Thanks
 
S'thing like:

. .profile

will work in sh or ksh... or equivalent for other shells

Yours, Mauro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top