Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Running nph-bulid.cgi from shell problem

Quote Reply
Running nph-bulid.cgi from shell problem
Hello.

When I'm trying to run nph-build.cgi from telnet (I need it for cron), I'm getting the following error message:

You cant run this script from telnet/shell

I've serached all forum but didn't find an answer why could it happen. I understand why admin.cgi doesn't run from shell, but what about nph-build.cgi? Unsure

People, HELP ME! Summer is coming and this small problem keeps me indoors. Smile
Quote Reply
Re: [Kangaroo] Running nph-bulid.cgi from shell problem In reply to
Very odd. nph-build.cgi should have no problem building via telnet (I have it set up to do that on one of my sites). Could you try uploading a fresh copy and trying again?

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy.] Running nph-bulid.cgi from shell problem In reply to
Thanks for the quick answer. I did as you recommended (uploaded distributive nph-bild.cgi and it worked fine). Then I compared two scripts and found the difference appeared impotant:

$use_html = 0; in distributive

$use_html = 1; in my version

I don't have any sense what it means (not a programmer at all Pirate) but I've changed that string to =0 in my script and it seemed to work from telnet after that.

BUT!

Now I have my index page rebuit by cron from Telnet but when script is building category pages, I'm getting the following error message:

Building Category Pages . . .
Building Category: Category
Subcategories: 0
Links: 363
Directory: /usr/home/bla-bla/Category
Filename : /usr/home/bla-bla/Category/index.shtml
Subpage : /usr/home/bla-bla/Category/more2.shtml
Subpage : /usr/home/bla-bla/Category/more3.shtml
Subpage : /usr/home/bla-bla/Category/more4.shtml


Content-type: text/html


<PRE>

CGI ERROR
==========================================
Error Message : unable to open category page:
/usr/home/bla-bla.com/Category/index4.shtml. Reason: Permission denied
Script Location : /home/virt/bla-bla/admin/nph-build.cgi
Perl Version : 5.006001


Andy or anybody else, could you tell me what does it mean and how to deal with this problem?

Thanks in advance.

Quote Reply
Re: [Kangaroo] Running nph-bulid.cgi from shell problem In reply to
You need to make sure your folders are CHMODed to 777, and data/page files to 666.

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy.] Running nph-bulid.cgi from shell problem In reply to
Thanks, Andy, I'll try to.

LINKS 2 FOREVER!!! Wink