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

Re: Testing if PPP link is active



>>> What would be a good way for a script to test if the PPP link is active?
>
>	/sbin/ifconfig -a | egrep ^ppp0 > /dev/null 2>&1
>	if [ $? -eq 0 ]
>	then
>		echo "PPP link active"
>	fi

This would tell you if the link were up (if there is a ppp0 device),
but I thought he was asking how to see if it were active (currently
transmitting or receiving packets).

I believe we did this at one point (before we went 24/7) but I can't
recall how...

I'll try and check...

        - Kevin Colby
          kevin marcal com



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