Script Help

Raymond Cloutier Raymond.Cloutier at infomedtrics.com
Thu Sep 2 14:26:03 EDT 1999


Chris,
   I like you idea a little better.  Could you share your TCL code for the
grep ppp0 and alarm.

Thanks for the help and ideas.

-Ray


		-----Original Message-----
		From:	Christoph Doerbeck A242369
[mailto:cdoerbec at cso.fmr.com]
		Sent:	Thursday, September 02, 1999 2:08 PM
		To:	discuss at Blu.Org
		Subject:	Re: Script Help 


		What I do in one of my TclTK scripts is to run 'ifconfig
ppp0' every
		5 seconds and grep for until the keyword 'UP' in the output.

		Secondly, I create an alarm to end this process if 2 minutes
if the
		ppp0 link never come up...


		Raymond Cloutier wrote:
		> I'm having problems writing a script to kill and restart
my web server.
		> I've got most of the pieces in place but I'm missing one
component.
		> 
		> 
		> Frequently my provider disconnects me and here's what I
must do.
		>  
		> 1)  dial my provider and obtain an IP address
		> 2)  Kill the apache web server,
		> 3)  Wait for a connection,
		> 4)  Connect to dyndns.org to update my dynamic dns name/
ip,
		> 5)  Start the web server.
		> 
		> I've written and/or found scripts to do all but step 3,
and can seem to find
		> a work around other than to have 2 scripts, 1 for steps
1-2, and another for
		> steps 4 & 5, and do step 3 manually (wait)
		> 
		> Any thought or suggestions on how to pause/wait for a ppp0
connection, then
		> resume a script.
		> 
		> Thanks
		> 
		> -Ray
		> -
		> Subcription/unsubscription/info requests: send e-mail with
		> "subscribe", "unsubscribe", or "info" on the first line of
the
		> message body to discuss-request at blu.org (Subject line is
ignored).
		> 


		-
		Subcription/unsubscription/info requests: send e-mail with
		"subscribe", "unsubscribe", or "info" on the first line of
the
		message body to discuss-request at blu.org (Subject line is
ignored).
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list