Oprano Adult Industry Forums

Oprano Adult Industry Forums (http://www.oprano.com/msgboard/index.php)
-   Legacy Archived Main Board (http://www.oprano.com/msgboard/forumdisplay.php?f=25)
-   -   Server wide editing (http://www.oprano.com/msgboard/showthread.php?t=40671)

JizBiz 05-03-2005 11:28 PM

Hey ladies and gents.

Anyone know of a solution to search and replace links across a server with several domains on it?..

We have it incorporated into a custom solution but wont be ready for several days/weeks.

Any thoughts or ideas would be appreciated. :)

Nickatilynx 05-03-2005 11:51 PM

Here's how I do it.....

""""Technick ,you homo bastard!!! I want every single mother fucking link on every fucking domain we have changed , right fucking now , or my foot is gonna pay a visit at high speed to your scrotum"""

I then find it helps to stand behind making noises like a quiz show clock ticking down whilst stretching ,warming up and putting on my special "nut kicking" shoes...(opera slippers don't cause that castrato squeal that i do try to obtain with my nut kicking)


;-))))

Nickatilynx 05-03-2005 11:51 PM

Oh and people that have worked at the offices in Vancouver know I'm not really exagerrating.

;-)))

JizBiz 05-04-2005 12:02 AM

Quote:

Originally posted by Nickatilynx@May 3 2005, 10:52 PM
Here's how I do it.....

""""Technick ,you homo bastard!!! I want every single mother fucking link on every fucking domain we have changed , right fucking now , or my foot is gonna pay a visit at high speed to your scrotum"""

I then find it helps to stand behind making noises like a quiz show clock ticking down whilst stretching ,warming up and putting on my special "nut kicking" shoes...(opera slippers don't cause that castrato squeal that i do try to obtain with my nut kicking)


;-))))

Sounds quite familiar.....

""""JizBiz ,you aboot talkin homo bastard!!! I want every single mother fucking link on every fucking domain we have changed , right fucking now mate, or me BAR B is gonna pay your IGLOO a visit via dial up to your scrotum"""

But he cant stand behind me cause theres 3 weeks worth of ocean between us...haha

But you can see why im looking :agrin:

Nickatilynx 05-04-2005 12:06 AM

Quote:

Originally posted by JizBiz+May 3 2005, 08:03 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (JizBiz @ May 3 2005, 08:03 PM)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-Nickatilynx@May 3 2005, 10:52 PM
Here's how I do it.....

""""Technick ,you homo bastard!!! I want every single mother fucking link on every fucking domain we have changed , right fucking now , or my foot is gonna pay a visit at high speed to your scrotum"""

I then find it helps to stand behind making noises like a quiz show clock ticking down whilst stretching ,warming up and putting on my special "nut kicking" shoes...(opera slippers don't cause that castrato squeal that i do try to obtain with my nut kicking)


;-))))

Sounds quite familiar.....

""""JizBiz ,you aboot talkin homo bastard!!! I want every single mother fucking link on every fucking domain we have changed , right fucking now mate, or me BAR B is gonna pay your IGLOO a visit via dial up to your scrotum"""

But he cant stand behind me cause theres 3 weeks worth of ocean between us...haha

But you can see why im looking :agrin: [/b][/quote]
I think you'll find though that people from his part of the world do appreciate my management technique.

;-)))

If you really want to impress him , mention that you've heard that his Cricket team are a bunch of poofs ( means "really good")

:)

Mr Benn 05-04-2005 06:31 AM

for i in `grep -ir olddirectory/subdir/link1.html /www/vhosts/ | cut -d":" -f1 | sort | uniq`; do cat $i | sed -e 's/olddirectory\/subdir\/link1.html/newdirectory\/newlink1.html/g' > .tmp$$; mv -f .tmp$$ $i; done

That would search all files in /www/vhosts (and all subdirectories) for the string "olddirectory/subdir/link1.html", produce a unique list of filenames with full path, replace the string you searched for with "newdirectory/newlink1.html", write the new output to a temp file, then overwrite the original file with your new one.

Trev 05-04-2005 07:41 AM

Quote:

Originally posted by Mr Benn@May 4 2005, 11:32 AM
for i in `grep -ir olddirectory/subdir/link1.html /www/vhosts/ | cut -d":" -f1 | sort | uniq`; do cat $i | sed -e 's/olddirectory\/subdir\/link1.html/newdirectory\/newlink1.html/g' > .tmp$$; mv -f .tmp$$ $i; done

That would search all files in /www/vhosts (and all subdirectories) for the string "olddirectory/subdir/link1.html", produce a unique list of filenames with full path, replace the string you searched for with "newdirectory/newlink1.html", write the new output to a temp file, then overwrite the original file with your new one.

:huh: :blink:

Cleo 05-04-2005 07:45 AM

I tried a few browser based solutions but they all seemed to have issues.

This seems to always work.
http://www.sponsororganizer.com/Free...s/s_and_r.html

JizBiz 05-04-2005 08:17 AM

Quote:

Originally posted by Cleo@May 4 2005, 06:46 AM
I tried a few browser based solutions but they all seemed to have issues.

This seems to always work.
http://www.sponsororganizer.com/Free...s/s_and_r.html

Awesome MrBenns answer was great too, i figured it out a minute befor you posted this..heh

Thanks all.

Inabon 05-04-2005 08:29 AM

Quote:

Originally posted by Trev+May 4 2005, 06:42 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Trev @ May 4 2005, 06:42 AM)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-Mr Benn@May 4 2005, 11:32 AM
for i in `grep -ir olddirectory/subdir/link1.html /www/vhosts/ | cut -d":" -f1 | sort | uniq`; do cat $i | sed -e 's/olddirectory\/subdir\/link1.html/newdirectory\/newlink1.html/g' > .tmp$$; mv -f .tmp$$ $i; done

That would search all files in /www/vhosts (and all subdirectories) for the string "olddirectory/subdir/link1.html", produce a unique list of filenames with full path, replace the string you searched for with "newdirectory/newlink1.html", write the new output to a temp file, then overwrite the original file with your new one.

:huh: :blink: [/b][/quote]
yeahhh i know thats something only boldy would understand. boldy where are you translate this for me LOL

ttyl
P

Cleo 05-04-2005 08:39 AM

Here is a browser based solution that I bought.
http://cgi.veinotte.com/web_file_editor.htm

Works most of the time but seems to not work sometimes for no reason at all.

Newton 05-04-2005 08:44 AM

Mr Benn is a very sharp guy :) A pleasure to deal with as well.

BillPMB 05-04-2005 09:53 AM

http://www.webcamsinc.com/sandr.zip (right click, save as)

Run it from an ssh session from your ftp root, take a look at it and you'll get it.
It'll change anything server wide.

Of course it's even easier to treat html as php from the get go and use includes but that's another discussion.

Trev 05-04-2005 10:34 AM

Quote:

Originally posted by BillPMB@May 4 2005, 02:54 PM
http://www.webcamsinc.com/s_r.pl (right click, save as)

Run it from an ssh session from your ftp root, take a look at it and you'll get it.
It'll change anything server wide.

Of course it's even easier to treat html as php from the get go and use includes but that's another discussion.

I'm getting an internal server error on that link Bill

PornoDoggy 05-04-2005 10:39 AM

Quote:

Originally posted by Cleo@May 4 2005, 07:40 AM
Here is a browser based solution that I bought.
http://cgi.veinotte.com/web_file_editor.htm

Works most of the time but seems to not work sometimes for no reason at all.

I haven't had many problems with it ... been using it for about three years, but only on a per-domain basis.

DrGuile 05-04-2005 10:40 AM

Quote:

Originally posted by Trev+May 4 2005, 09:35 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Trev @ May 4 2005, 09:35 AM)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-BillPMB@May 4 2005, 02:54 PM
http://www.webcamsinc.com/s_r.pl (right click, save as)

Run it from an ssh session from your ftp root, take a look at it and you'll get it.
It'll change anything server wide.

Of course it's even easier to treat html as php from the get go and use includes but that's another discussion.

I'm getting an internal server error on that link Bill [/b][/quote]
hmm, maybe that's why he said "Right click and Save as..."

ya know...

Trev 05-04-2005 11:06 AM

Quote:

Originally posted by DrGuile+May 4 2005, 03:41 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (DrGuile @ May 4 2005, 03:41 PM)</td></tr><tr><td id='QUOTE'>
Quote:

Originally posted by Trev@May 4 2005, 09:35 AM
<!--QuoteBegin-BillPMB
Quote:

@May 4 2005, 02:54 PM
http://www.webcamsinc.com/s_r.pl (right click, save as)

Run it from an ssh session from your ftp root, take a look at it and you'll get it.
It'll change anything server wide.

Of course it's even easier to treat html as php from the get go and use includes but that's another discussion.


I'm getting an internal server error on that link Bill

hmm, maybe that's why he said "Right click and Save as..."

ya know... [/b][/quote]
Thats a no no as well :P

JizBiz 05-04-2005 11:06 AM

Quote:

Originally posted by DrGuile+May 4 2005, 09:41 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (DrGuile @ May 4 2005, 09:41 AM)</td></tr><tr><td id='QUOTE'>
Quote:

Originally posted by Trev@May 4 2005, 09:35 AM
<!--QuoteBegin-BillPMB
Quote:

@May 4 2005, 02:54 PM
http://www.webcamsinc.com/s_r.pl (right click, save as)

Run it from an ssh session from your ftp root, take a look at it and you'll get it.
It'll change anything server wide.

Of course it's even easier to treat html as php from the get go and use includes but that's another discussion.


I'm getting an internal server error on that link Bill

hmm, maybe that's why he said "Right click and Save as..."

ya know... [/b][/quote]
Still doesnt work

ya know?..lol

But interested in seeing it Bill

BillPMB 05-04-2005 11:17 AM

Dunno what that crap was all about. See my original post, right click and save as. (I zipped it and that did the trick)

Friggin' mountain dew drinking programmers getting in the way of productivity again.

Fuckers.

;)

DrGuile 05-04-2005 11:57 AM

Quote:

Originally posted by JizBiz@May 4 2005, 10:07 AM

Still doesnt work

ya know?..lol

Well no, obviously I didnt know ;)


All times are GMT -4. The time now is 12:38 AM..

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright Evil Empire Inc. 2006-2022