Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Script runs from command line but not via crontab

by kirillm (Friar)
on Jan 02, 2008 at 10:24 UTC ( #659943=note: print w/replies, xml ) Need Help??


in reply to Script runs from command line but not via crontab

Hi,

What's the full path to your script and what's the contents of the environment variable $PATH in your crontab? Specify full path to your script in the crontab and the problem should go away:

1-59/5 * * * * /full/path/to/cgi-bin/dbman/db2sql.sh

P.S. 1-59/5 Is a shorter way to say that the command should be executed every 5 mins.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://659943]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-08-15 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?