I need to run a bash script and a perl program in detached background mode from cron.daily
I tried this last night and it hung the cron job … I guess waiting for the programs to finish … I tested the script from the command line and it detatches properly, but doesn’t when run from cron.
cron.daily directory contains file named script1.
script1 contains:
nohup script2 &
nohup perlprogram.pl &
Thanks in advance
Most problems with cron occur due to different environment variables. Is script2 and perlprogram.pl in your PATH when script1 is executed by cron?