[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Using DIP for Leased Line
- From: "Jeff Hogg" <tastin blkbox com>
- To: <redhat-install-list redhat com>
- Subject: Re: Using DIP for Leased Line
- Date: Wed, 28 Jul 1999 13:35:50 -0500
-----Original Message-----
From: S.i.D <Coroner Dolphins ch>
To: redhat-install-list redhat com <redhat-install-list redhat com>
Date: Wednesday, July 28, 1999 1:25 PM
Subject: Using DIP for Leased Line
>Now, the main problem is that when the Line breaks, DIP wont restart
>itself, so I've made a script for cron (2mins) wich will dial up .. the
>problem is .. if the Line isn't broken, I'm getting an error message in
>the syslog (I surpressed the ones for cron with "dip /etc/dipscript.dip
>1>/dev/null 2>&1")
>I know this is a crappy solution, but it was the only thing I got
>running with my linux knowledge :)).
>
>Now, does anybody know a solution wich could check if DIP is still
>running (so the leased line would be online) and skip, or when DIP isn't
>running (leased line would be broken) start the dip script again.
I've seen a more graceful explaination of this in a previous post, but you
could try using ps and grep together to look for the dip and its pid. If it
is found, skip the dip script, if its not found, go ahead. Ought not to be
too hard. Something like ps aux | grep 'dip' to detect the connection.
Anyone else go the syntax on this one?
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]