Re: Shell Script needed
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54773
interpreted = N
texte = On 12/9/03 12:40 AM, "Alain Russell" 
wrote:> Sounds to me like you have some bad code somewhere .. the versions of WebDNA>> 4.5 are pretty solid, especially when the WebDNAmonitor is running.> > What is 'heavy traffic' ?2 T-1 lines completely saturated at times.1 dual 1 gig server with 1.5 gigs or ram.Millions and millions of files served daily.> > try this version ..> > #!/bin/sh> cd /Library/WebServer/CGI-Executables/Webcatalogengine> /Library/WebServer/CGI-Executables/Webcatalogengine/webcatalogctl stop> WebatalogCtl will not work. I get an error saying the app webdna monitor(monior? Misspelling in code?) is already running. Cannot stop webcatalog.I can use the terminal to ps & grep to get a line that contains thewebcatalog PID, but I have no idea of how to extract just the pid from thatline or to use the PID in a kill -9 command.Hopefully, my cleanup efforts today will make this less critical, but itsure would be helpful if someone could give me a hand with this.Thanks, Paul> Alain> > ----- Original Message -----> From: "Paul Uttermohlen" > To: "WebDNA Talk" > Sent: Tuesday, December 09, 2003 5:39 PM> Subject: Re: Shell Script needed> > >> Webcatalog gets confused when the traffic gets heavy. It can't find>> databases. It can't create carts because it can't find the shoppingcarts>> folder. And on and on.>> >> Killing webcatalog has always solved the problem without any database>> corruption, I guess since at the time it is not writing to any databases>> since it can't find them anyway.>> >> I can use webcat to get the pid. And I can use webcat to kill itself with>> that pid, but I can't do either of these when webcat is not running>> correctly..... So I need to do it with a shell script>> >> Help. Please.>> >> Thanks, Paul>> >> >> >> >> On 12/8/03 10:00 PM, "Alain Russell" >> wrote:>> >>> You don't want to do a kill -9 as this will corrupt the databases if it>>> is writing at the time ..>>> Do you get an error when running the script .. ?>>> Why do you want to stop WebDNA ?>>> >>> Alain>>> >>> On 09/12/2003, at 12:21 PM, Paul Uttermohlen wrote:>>> >>>> >>>> Yeah. That's the first thing I tried, but it doesn't work.>>>> >>>> I need something that will get the PID so I can do>>>> >>>> Kill -9 PID>>>> >>>> I can use>>>> >>>> Ps -aux | head -21 | grep Webcatalog>>>> >>>> To get>>>> >>>> www 20381   100.8 30.3  528656  476356  p3- R   87:44.76 Webcatalog -m>>>> >>>> Where the second number is the pid.>>>> >>>> Paul>>>> >>>> >>>> >>>> On 12/8/03 5:45 PM, "Alain Russell" >>>> wrote:>>>> >>>>> #/bin/sh>>>>> >>>>> cd /Library/WebServer/CGI-Executables/Webcatalogengine (or the correct>>>>> path)>>>>> ./webcatalogctl stop>>>>> >>>>> Should do it for you ..>>>>> >>>>> >>>>> On 09/12/2003, at 11:40 AM, Paul Uttermohlen wrote:>>>>> >>>>>> Hi,>>>>>> >>>>>> I need a shell script for Mac OSX that I can call with cron to kill,>>>>>> quit or>>>>>> restart Webcatalog.>>>>>> >>>>>> Does anyone have one that they can donate to me?>>>>>> >>>>>> I'm trying to automatically kill webcatalog at a specified time.>>>>>> >>>>>> I've tried webcatalogctl restart, but it does not work. I just get a>>>>>> message>>>>>> that WebDNA monitor is already running.>>>>>> >>>>>> Thanks, Paul>>>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------->>>> This message is sent to you because you are subscribed to>>>>   the mailing list .>>>> To unsubscribe, E-mail to: >>>> To switch to the DIGEST mode, E-mail to>>>> >>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>> >>> >>> >>> ------------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to>>> >>> Web Archive of this list is at: http://webdna.smithmicro.com/>> >> ________________________________________________________>> Paul Uttermohlen>> http://www.Anoweb.com/>> http://www.Uttermohlen.com/>> Paul@Anoweb.com>> Columbus, Ohio 43026>> 614-529-8963>> _______________________________________________________>> >> >> >> >> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>>   the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to> >> Web Archive of this list is at: http://webdna.smithmicro.com/>> > > > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/________________________________________________________Paul Uttermohlenhttp://www.Anoweb.com/http://www.Uttermohlen.com/Paul@Anoweb.comColumbus, Ohio 43026614-529-8963_______________________________________________________-------------------------------------------------------------This message is sent to you because you are subscribed to  the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
On 12/9/03 12:40 AM, "Alain Russell" wrote:> Sounds to me like you have some bad code somewhere .. the versions of WebDNA>> 4.5 are pretty solid, especially when the WebDNAmonitor is running.> > What is 'heavy traffic' ?2 T-1 lines completely saturated at times.1 dual 1 gig server with 1.5 gigs or ram.Millions and millions of files served daily.> > try this version ..> > #!/bin/sh> cd /Library/WebServer/CGI-Executables/Webcatalogengine> /Library/WebServer/CGI-Executables/Webcatalogengine/webcatalogctl stop> WebatalogCtl will not work. I get an error saying the app webdna monitor(monior? Misspelling in code?) is already running. Cannot stop webcatalog.I can use the terminal to ps & grep to get a line that contains thewebcatalog PID, but I have no idea of how to extract just the pid from thatline or to use the PID in a kill -9 command.Hopefully, my cleanup efforts today will make this less critical, but itsure would be helpful if someone could give me a hand with this.Thanks, Paul> Alain> > ----- Original Message -----> From: "Paul Uttermohlen" > To: "WebDNA Talk" > Sent: Tuesday, December 09, 2003 5:39 PM> Subject: Re: Shell Script needed> > >> Webcatalog gets confused when the traffic gets heavy. It can't find>> databases. It can't create carts because it can't find the shoppingcarts>> folder. And on and on.>> >> Killing webcatalog has always solved the problem without any database>> corruption, I guess since at the time it is not writing to any databases>> since it can't find them anyway.>> >> I can use webcat to get the pid. And I can use webcat to kill itself with>> that pid, but I can't do either of these when webcat is not running>> correctly..... So I need to do it with a shell script>> >> Help. Please.>> >> Thanks, Paul>> >> >> >> >> On 12/8/03 10:00 PM, "Alain Russell" >> wrote:>> >>> You don't want to do a kill -9 as this will corrupt the databases if it>>> is writing at the time ..>>> Do you get an error when running the script .. ?>>> Why do you want to stop WebDNA ?>>> >>> Alain>>> >>> On 09/12/2003, at 12:21 PM, Paul Uttermohlen wrote:>>> >>>> >>>> Yeah. That's the first thing I tried, but it doesn't work.>>>> >>>> I need something that will get the PID so I can do>>>> >>>> Kill -9 PID>>>> >>>> I can use>>>> >>>> Ps -aux | head -21 | grep Webcatalog>>>> >>>> To get>>>> >>>> www 20381   100.8 30.3  528656  476356  p3- R   87:44.76 Webcatalog -m>>>> >>>> Where the second number is the pid.>>>> >>>> Paul>>>> >>>> >>>> >>>> On 12/8/03 5:45 PM, "Alain Russell" >>>> wrote:>>>> >>>>> #/bin/sh>>>>> >>>>> cd /Library/WebServer/CGI-Executables/Webcatalogengine (or the correct>>>>> path)>>>>> ./webcatalogctl stop>>>>> >>>>> Should do it for you ..>>>>> >>>>> >>>>> On 09/12/2003, at 11:40 AM, Paul Uttermohlen wrote:>>>>> >>>>>> Hi,>>>>>> >>>>>> I need a shell script for Mac OSX that I can call with cron to kill,>>>>>> quit or>>>>>> restart Webcatalog.>>>>>> >>>>>> Does anyone have one that they can donate to me?>>>>>> >>>>>> I'm trying to automatically kill webcatalog at a specified time.>>>>>> >>>>>> I've tried webcatalogctl restart, but it does not work. I just get a>>>>>> message>>>>>> that WebDNA monitor is already running.>>>>>> >>>>>> Thanks, Paul>>>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------->>>> This message is sent to you because you are subscribed to>>>>   the mailing list .>>>> To unsubscribe, E-mail to: >>>> To switch to the DIGEST mode, E-mail to>>>> >>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>> >>> >>> >>> ------------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to>>> >>> Web Archive of this list is at: http://webdna.smithmicro.com/>> >> ________________________________________________________>> Paul Uttermohlen>> http://www.Anoweb.com/>> http://www.Uttermohlen.com/>> Paul@Anoweb.com>> Columbus, Ohio 43026>> 614-529-8963>> _______________________________________________________>> >> >> >> >> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>>   the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to> >> Web Archive of this list is at: http://webdna.smithmicro.com/>> > > > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/________________________________________________________Paul Uttermohlenhttp://www.Anoweb.com/http://www.Uttermohlen.com/Paul@Anoweb.comColumbus, Ohio 43026614-529-8963_______________________________________________________-------------------------------------------------------------This message is sent to you because you are subscribed to  the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
 Paul Uttermohlen 
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
 
japanese characters (1997)
 
about this server and links to who (1997)
 
cybercash (1998)
 
Server Traffic Simulation (1998)
 
Max Record length restated as maybe bug (1997)
 
[WebDNA] Talklist Archive & Twitter (2009)
 
webcat error log (1998)
 
rn (range) (2003)
 
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
 
calculating tax rates, mail order solutions and version 2 (1997)
 
Location of Browser Info.txt file (1997)
 
[cart]'s ever get recycled? (2000)
 
Search multiple fields (1997)
 
 SHOWIF/HIDEIF empty fields (2005)
 
Need Photo Placement Suggestions (2002)
 
 Grep (2003)
 
Nested tags count question (1997)
 
PIXO support (1997)
 
WebCommerce: Folder organization ? (1997)
 
Help with sorting search results sorting (1998)