Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Crashed when I renamed links directory and change setup paths!!

Quote Reply
Crashed when I renamed links directory and change setup paths!!
Greetings again..
I've did something stu.... to change the whole path of linksSQL from scripts to scriptsSQL ...
so in links setup, I changed the path from scripts to scriptsSQL, then went to the Linux shell and did: mv scripts/ scriptsSQL (to rename the links directory)...
Now, nothing works, I am getting error message if I attemt to access the new or old path...
Code:
...cgibin/scripts/admin/GT/Config.pm line 396.
Please enable debugging in setup for more details.

How can I access the setup file to rename the paths back to what they were before this stu.... change...
Thanks much...
Mark
Quote Reply
Re: [Mark2] Crashed when I renamed links directory and change setup paths!! In reply to
Hi,

You would need to run a "grep" via SSH;

Code:
cd ./cgi-bin/scriptsSQL
perl -p -i -e 's|/scripts|/scriptsSQL|g' `grep -r -l '/scripts .`

That should sort it out :)

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] Crashed when I renamed links directory and change setup paths!! In reply to
somehow.. I think I am missing a closing or somthing as I am getting this error:
Code:

[scriptssql]$ perl -p -i -e 's|/scripts|/scriptssql|g' `grep -r -l '/scripts .`
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 2: syntax error: unexpected end of file
Quote Reply
Re: [Mark2] Crashed when I renamed links directory and change setup paths!! In reply to
Sorry, was missing a '... try this:

perl -p -i -e 's|/scripts|/scriptssql|g' `grep -r -l '/scripts' .`

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] Crashed when I renamed links directory and change setup paths!! In reply to
Thanks much Andy....Worked so nicely ...Wink