[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?
>> 
>> Thanks in advance for any suggestions.

	/sbin/ifconfig -a | egrep ^ppp0 > /dev/null 2>&1
	if [ $? -eq 0 ]
	then
		echo "PPP link active"
	fi

Tet

--
``People who expect to be happy fill me with dread. Happy is not a state
  to which you should aspire. You're going to be disappointed.''    -- Lemmy
--------------------+--------------+----------------------------------------
tethys ml com       |  Micro$oft:  | Linux,  the choice of a GNU generation.
tet astradyne co uk | Just say no! | See http://www.uk.linux.org for details



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