Hello Gustav,
The only thing I've seen checks it like this...
***************Begin*****************************
NO=""
is_ppp_active=`ifconfig ppp0 | grep "UP POINTOPOINT RUNNING"`
if [ "$is_ppp_active" != "$NO" ] ; then
**************End********************************
It may not be that elegant though, but it should work.
--
Best regards,
Brian Ashe
CTO
[EMAIL PROTECTED]
http://www.dee-web.com/
Tuesday, April 18, 2000, 1:51:07 PM, you wrote:
GS> Hi,
GS> I know I've seen a recipe for this somewhere sometime.
GS> I want to let cron execute a script on regular intervals. This script
GS> shall look upon the state of my serial port ppp0. If ppp0 is up, then
GS> certain commands should be executed, otherwise not.
GS> I know that I could use ip-up and ip-down to write some 'indicator file'
GS> that I can let my new script read and interpret.
GS> But...
GS> I have seen a very elegant solution described (unfortunately I can't
GS> find it back) where the script looked upon something in the system to
GS> find out the state of ppp0. May eventually have been something under
GS> /dev but I really don't remember.
GS> Anyone understand what I'm talking about? ;-)
GS> Anyone have any ideas of how to realize this?
GS> Best regards
GS> Gustav
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.