Modem Failures
Robert Canary (rwcanary@ohiocounty.net)
Mon, 16 Nov 1998 06:43:37 -0600
Gert Doering wrote:
>
> Hi,
>
> On Mon, Nov 16, 1998 at 12:42:56AM -0600, Robert Canary wrote:
> > I was wondering if it is possible to get mgetty to run a certain script
> > (0r something) that would be used to get the the sysop's attention when
> > a modem continually fails to intitialize, instead of going into a
> > relentless circle of intitializations. Usually when this happens some
> > sort of humen intervention is required.
>
> Check contrib/watchit.pl for a tool that will monitor the mgetty log
> file(s) and complain if more than 3 initialization attempts fail in
> sequence.
>
Weeeell, I was hoping I could make mgetty send a SIGxxx to a perl
script. I have a trap routine in the perl script that reacts to certain
SIGxxxs. I use the routine to check condition of ppp logins and update
the PPP display panel. This process is running already. Using the trap
routine, I can cause the process to wake up and go get an update of all
conditions. This way I don't have to have *another* process running.
--
robert