Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Force Links Repair in SSH

Quote Reply
Force Links Repair in SSH
Hi:

I know how to force nph-build to repair all link counts (add &force=1), and that works fine from the browser. But my browser is timing out and that method does not work. How can I force this in SSH???

Thanks!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Force Links Repair in SSH In reply to
http://www.gossamer-threads.com/...orum.cgi?post=268134

HyTC

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Force Links Repair in SSH In reply to
Searched- never found that. THANK YOU!!!!! Cool
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Force Links Repair in SSH In reply to
Nope- that does NOT work. it reads the "--repair" but ignores everything after that. The thread you linked to links to another page that said this does not work.

My other solution would be to figure out why my browser times out when doing "intense" functions like this or building. Seems like it started when I moved the back server over to Apache 2 (maybe).
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Force Links Repair in SSH In reply to
For what it's worth, here is a solution, however inelegant...

edit nph-build

find sub _reset_category_stats

Comment out line 7 (my $force = $IN->param('force');)

Add after the above: "my $force = 1;"

run nph-build --repair

Return nph-build to previous.

dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Force Links Repair in SSH In reply to
Hi,

Bit of an old post, but I just came across the problem where it won't do a --force via SSH. Here is a fix (seems to work fine for me :))

First, find (lines 801-832 in my copy of nph-build.cgi):

Code:
sub _reset_category_stats {
..
}

Change:

Code:
my $force = $IN->param('force');

...to;

Code:
my $force = $ARGV[1] || $IN->param('force');

..then call with:

Code:
perl nph-build.cgi --repair --force

Hope that helps someone in the future :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Force Links Repair in SSH In reply to
Hi,

Slightly different, but I've always used:

./nph-build.cgi --repair force=1

Works for me Smile

Cheers,
Shaun