On Sat, 27 Jan 2001, Merell L. Matlock, Jr. wrote:
> Howdy folks,
>
> Can someone help to pull the wool out of my eyes?
>
> I need to do a job called 'X'.
>
> X needs to run if my dial-up connection is active, but if the dial-up
> is *not* active, it needs to dialup, run then disconnect.
>
> I cna get the 'not active' part to work, but just can't figure out how
> to detect if ppp0 is up and running.
you could just run "ifconfig" and see if there is a PPP interface
there. or, better yet, PPP normally places a file in /var/run,
(ppp0.pid), containing its own PID. check if it's there.
rday
--
Robert P. J. Day
Eno River Technologies, Durham NC
Unix, Linux and Open Source training
"This is Microsoft technical support. How may I misinform you?"
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list