On Thu, 27 Jan 2000, Joseph Morrison wrote:
jm> Hello all,
jm>
jm> Can any of you suggest the cleanest way for a shell script to test
jm> whether the diald connection is up or down?
jm>
jm> I can think of clumsy ways, such as writing a lock file in the ip-up
jm> script and removing it in the ip-down script; then the script can check
jm> for the presence of the lock file.
jm>
jm> Or alternatively, I've studied the documentation on the fifo mechanism,
jm> but it doesn't seem to have any sort of one-off "query" function. Or I
jm> suppose I could write a monitoring program which constantly keeps track
jm> of the connection status. But it seems like there must be a simpler,
jm> cleaner way to just spot-check the connection status.
jm>
jm> Any suggestions much appreciated!
jm>
Have you tried typeing 'dctrl -fifo /usr/lib/diald/diald.ctl' at a
command prompt? Opens a nice little monitoring dialog for tcl/tk
jm> Thanks,
jm> - Joe
jm>
jm>
--
S.Toms - [EMAIL PROTECTED] - homepage is in the works
SuSE Linux v6.2+ - Kernel 2.2.13
Nature is by and large to be found out of doors, a location where, it
cannot be argued, there are never enough comfortable chairs.
-- Fran Leibowitz
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]