in reply to perl /cron /DBI
In order to set your run-time environment, try modifying the crontab(1) entry to...
You can emulate the run-time environment using at(1) - something like ...59 10 * * * . $HOME/.profile ; perl /home/rabie/test.pl 1 2 3 > /home/ +rabie/test.out 2>&1
or, if that doesn't work...> at now $HOME/.profile ; perl /home/rabie/test.pl 1 2 3 > /home/rabie +/test.out 2>&1
> at now <<! $HOME/.profile ; perl /home/rabie/test.pl 1 2 3 > /home/rabie/test.out + 2>&1 !
|
|---|