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.