E
Edward
Can't seem to get this working.
Crontab entry:
55 17 * * * /usr/home/edward/perl/perfanalyser/plTest 2>&1
Script (plTest):
#!/usr/local/bin/perl
open TEST, ">>/usr/home/edward/perl/perfanalyser/test.txt";
print TEST "hello\n";
Cron job fails:
Your "cron" job on ldtcce04
/usr/home/edward/perl/perfanalyser/plTest 2>&1
produced the following output:
ld.so.1: /usr/local/bin/perl: fatal: libgdbm.so.2: open failed: No
such file or directory
Killed
Tried:
55 17 * * * su - edward /usr/home/edward/perl/perfanalyser/plTest 2>&1
Cron job fails:
our "cron" job on ldtcce04
su - edwardo /usr/home/edward/perl/perfanalyser/plTest 2>&1
produced the following output:
/usr/home/edward/perl/perfanalyser/plTest: open: command not found
/usr/home/edward/perl/perfanalyser/plTest: print: command not found
I added to edward's .profile:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/ccs/bin
export PATH
LD_LIBRARY_PATH=/usr/local/lib:enfinity0/oracle_client/lib
export LD_LIBRARY_PATH
Any ideas?
Thanks,
Edward
Crontab entry:
55 17 * * * /usr/home/edward/perl/perfanalyser/plTest 2>&1
Script (plTest):
#!/usr/local/bin/perl
open TEST, ">>/usr/home/edward/perl/perfanalyser/test.txt";
print TEST "hello\n";
Cron job fails:
Your "cron" job on ldtcce04
/usr/home/edward/perl/perfanalyser/plTest 2>&1
produced the following output:
ld.so.1: /usr/local/bin/perl: fatal: libgdbm.so.2: open failed: No
such file or directory
Killed
Tried:
55 17 * * * su - edward /usr/home/edward/perl/perfanalyser/plTest 2>&1
Cron job fails:
our "cron" job on ldtcce04
su - edwardo /usr/home/edward/perl/perfanalyser/plTest 2>&1
produced the following output:
/usr/home/edward/perl/perfanalyser/plTest: open: command not found
/usr/home/edward/perl/perfanalyser/plTest: print: command not found
I added to edward's .profile:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/ccs/bin
export PATH
LD_LIBRARY_PATH=/usr/local/lib:enfinity0/oracle_client/lib
export LD_LIBRARY_PATH
Any ideas?
Thanks,
Edward