Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org