Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Error w/ nph-build.cgi running from cron.

Quote Reply
Error w/ nph-build.cgi running from cron.
Hi.

Thats what i get when i run the script "nph-build.cgi" from cron:

-------
shell-init: could not get current directory:
[Fri Jan 14 09:31:21 2000] nph-build.cgi: Can't locate Links.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at /www/netseek/cgi-bin/admin/nph-build.cgi line 34.
[Fri Jan 14 09:31:21 2000] nph-build.cgi: BEGIN failed--compilation aborted at /www/netseek/cgi-bin/admin/nph-build.cgi line 34.
Content-type: text/html

<H1>Software error:</H1>
<CODE>Can't locate Links.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at /www/netseek/cgi-bin/admin/nph-build.cgi line 34.
BEGIN failed--compilation aborted at /www/netseek/cgi-bin/admin/nph-build.cgi line 34.
</CODE>
<P>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.
-------

I also tried to add following to the beginning of the script but with no success:
>> chdir("/www/netseek/cgi-bin/admin"); <<

can anyone help me out here?

thanks
matevz
Quote Reply
Re: Error w/ nph-build.cgi running from cron. In reply to
Hi

I also have this problem and have not corrected this yet.

I think it is because you are running nph-build.cgi from cron and there is no path to Links.pm.

If you find the answer before I do please post here, I will do likewise.

regards
Tony
Quote Reply
Re: Error w/ nph-build.cgi running from cron. In reply to
In nph-build.cgi, just before:

use CGI ();
use CGI::Carp qw/fatalsToBrowser/;
use Links;
use Links: BSQL;
use Links: B_Utils;
use Links::HTML_Templates;
use strict;

try adding:

use lib '/full/path/to/admin/dir';

and see if that works.

Cheers,

Alex