Jake, In theory, you could use one of the CLI browsers (i.e. HTTPCMD, Lynx, Links, etc.) to make a request from a BAT/CMD file and interpret the results.
So, as an alternative to the previous CMD file, you could have something like: lynx.exe -source http://jongrieve.net/ | find "Could not connect to server" I think Lynx has a "-timeout=n" option, so that might do what you want. Regards, Jon -----Original Message----- From: Jacob Stevens [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 5:27 To: Multiple recipients of list witango-talk Subject: Re: Witango-Talk: Restarting Tango Jon, That's an intriguing piece of code you have there. Do you know of anyway (or theory of a way) to send out an http request and run a check to see if a web server responds within a certain amount of time using DOS commands? Quite often (for me) a Tango service will hang but remain in a running state as a service. - Jake Stevens ----- Original Message ----- From: "Jon Grieve" <[EMAIL PROTECTED]> To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 4:17 PM Subject: RE: Witango-Talk: Restarting Tango > Henning, > > Attached is a Windows 2000 script that checks whether the T2K service is > running and acts accordingly. I think you're looking for Linux examples, > but I thought this may help inspire you to code a Linux equivalent; i.e. > searching for the appropriate daemon (says he, trying to sound all > knowledgeable ;). > > Jon > > > -----Original Message----- > From: Henning Sittler [mailto:[EMAIL PROTECTED]] > Sent: 15 July 2002 17:29 > To: Multiple recipients of list witango-talk > Subject: Witango-Talk: Restarting Tango > > > I'm familiar with cron jobs, etc on Linux, but I would like to write script > that restarts the T2K server whenever a tango page is requested but the > server is not started (for whatever reason). > > By default, when a taf is requeted and the server is not started, the > webserver responds with a message, something like: > > -- > Tango 2000 > > Could not connect to server. > -- > > Anyone know where this message is located such that it could be altered? > I'd like to change it to include a redirect to something that triggers a > script that will restart the server and redirect to a working taf. > > Since the tango server is obviously not running at that point, I would > choose to use shell scripts, perl or php to do the restarting. > > Anyoine know where I can start? If I can find out what generates the above > error msg html, I cand probably get going from there. > > Thanks, > > > Henning Sittler > www.inscriber.com > ________________________________________________________________________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body > > ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
