in reply to Problem with AIX 5.3 Perl/SH Script and Crontab
Hi,
I have never used AIX, so this may not work. It did on various other *nix flavours.
In your crontab line, before the perl command use the AIX equivalent of 'source' or '.' to create the same environment as you have in your normal login.
Something along the lines of -
0 0,12 1 */2 * /sbin/ping -c 192.168.0.1 becomes 0 0,12 1 */2 * source .env_file; /sbin/ping -c 192.168.0.1 or 0 0,12 1 */2 * . .env_file; /sbin/ping -c 192.168.0.1
It has been some time since I've done this , so the actual commands have become hazy. Please forgive any errors.
J.C.
|
|---|