Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: perl script in nohup running from crontab

by raybies (Chaplain)
on Sep 22, 2011 at 12:27 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://927347]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-23 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found