Hello,
Anyway i would like to know how to create and where to put that script, so it will be sensing the connection and at the time it disconnects reconnects automatically... could you tell me how you have it configured?
Thanks in Advance !!!
-- (c) Schwartz ARGENTINA. That should be in the same e-mail wherein you found the script (cut/paste): ======================================================================== Beyond assigning dialout permissions for pppd, you might try the following
On Sunday 25 July 2004 09:34, Schwartz wrote: script which someone on the list shared with me (I wish I could remember the name so proper credit could be assigned): == #!/bin/sh # # Script to check if modem is disconnected & try reconnecting # result=$(cinternet -i ppp0 -s | grep disconnect) #Checks the status of device ppp0 for the word 'disconnect' and stores the #result in a variable called 'result' if [ -n "$result" ] #Test to see if the value is not NULL then cinternet -i ppp0 -A #Start the interface. sleep 10 else #The interface is up - Just exit exit 0 fi == I have been using this for weeks, now, and it works like a charm. One can put it in /usr/local/bin & call it as a cron job, if desired, to see that the connection stays up as long as you would like it to stay. ======================================================================== Unless, of course, you were looking at the wrong e-mail. ;-) -- ...CH "The more they over-think the plumbing, the easier it is to stop up the drain." Scotty