Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: perl script in nohup running from crontab

by raybies (Chaplain)
on Sep 22, 2011 at 12:27 UTC ( #927347=note: print w/ replies, xml ) Need Help??


in reply to Re: perl script in nohup running from crontab
in thread perl script in nohup running from crontab

ALSO, cron has minimal path provided by a minimal shell, so if it runs on your default shell, it may still not run in cron...

if the user installed expect or nohup in a dir that's not accessible in cron's shell, you may need to hardpath (provide the full path to every executable run in a script run in cron) them, for them to work within cron.


Comment on Re^2: perl script in nohup running from crontab
Re^3: perl script in nohup running from crontab
by tanuj (Novice) on Sep 22, 2011 at 13:38 UTC
    i added the full path as /use/bin/expect but still no luck.
      Have you specified the full path of nohup, too?
        @choroba , ya i have spicified the path of nohup as well but still the same problem
      You may also want to look at re-setting environment variable for PATH within the script so that the system knows how to find all the executables (/usr/bin, etc.) instead of hardcoding them all in to the command.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-07-13 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (247 votes), past polls