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 Failed

Status
Not open for further replies.

raisin96

Programmer
Oct 10, 2002
21
0
0
US
Hi,

Just want to ask if I lack anything on my script or cron job. When I issue the script on the command line it can execute it normally. But if I use the cron to run it, it fails. Below are the details of my cron and the contents of my script:

15 00 * * * /home/dce/bin/atmupdate

atmupdate script:

#!/bin/ksh

/home/dce/bin/atmupdate


Thanks in advance.
 
Looks like you are better off running your command from the ksh environment:

15 00 * * * ksh /home/dce/bin/atmupdate

If this does not help - possible you need it with your environment settings:

15 00 * * * su - YOR-USERNAME -c /home/dce/bin/atmupdate


Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top