Hi guys
I am running a cron file which calls a perl script. When I run the perl script from the command line it executes with no errors. But when postgres runs the cron file it gets an error.
This is what my cron file looks like when it calls the perl file
The output i get from the webmin interface is
I am pretty certain that there isnt a problem with my perl code, just a problem with the cron file.
Any help is greatly appreciated
Kungphu
I am running a cron file which calls a perl script. When I run the perl script from the command line it executes with no errors. But when postgres runs the cron file it gets an error.
This is what my cron file looks like when it calls the perl file
Code:
10 * * * * root /folderpath/file.pl
The output i get from the webmin interface is
Code:
Output from command /filepath/file.pl ..
install_driver(Pg) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Pg/Pg.so' for module DBD::Pg: libpq.so.4: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at (eval 4) line 3
Compilation failed in require at (eval 4) line 3.
Perhaps a required shared library or dll isn't installed where expected
at /filepath/file.pl line 15
I am pretty certain that there isnt a problem with my perl code, just a problem with the cron file.
Any help is greatly appreciated
Kungphu