From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,a0f06d8c338f37ae,start X-Google-Attributes: gid111c93,public From: Neoklis Subject: Need help on bash scripting Date: 2000/04/11 Message-ID: <8cvq2r$5jp$1@nnrp1.deja.com>#1/1 X-Deja-AN: 609738207 X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 195.14.131.223 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Apr 11 18:15:01 2000 GMT X-MyDeja-Info: XMYDJUIDneoklis Newsgroups: comp.os.linux.alpha X-Http-User-Agent: Lynx/2.8.2rel.1 libwww-FM/2.14 Hi! I am trying to write a bash script to start a PPP connection by running /etc/ppp/ppp-up and then downloading a number of websites into a file using the -dump facility of Lynx. I need a way of detecting the completion of the PPP connection by pppd before allowing the script to start Lynx, and also a way to re-try the connection if it fails for some reason (busy abort etc). I have tried tailing /var/log/messages using grep to look for messages from chat and pppd, but this is becoming much too complex as there seem to be many different situations arising, especially when my ISP is overloaded. Any help appreciated. Thanks in advance! -- Regards Neoklis My (ex-Acorn) RiscOS Homepage: http://www.arcsite.de/hp/neoklis Sent via Deja.com http://www.deja.com/ Before you buy.