This is what I do:
f=/var/run/diald.fifo ; [ -p $f ] && echo down >$f ;
If the link is currently down diald ignores (more or less) the command.
--
Rob. (Robert de Bath <http://www.cix.co.uk/~mayday>)
<http://poboxes.com/rdebath>
-- Sorry, weekend email only ATM. (Urgent to [EMAIL PROTECTED])
On Sat, 10 Oct 1998, Theo. Sean Schulze wrote:
> As my recent reply to Ben's email to me on connect scripts indicated, I am
> trying to put together a disconnect script. From reading diald(8) man
> page, I believe that would probably be best done with the fifo option.
> Under that option, I can send commands to diald by having my disconnect
> shell script send commands to a specified fifo file, let's say
> /etc/diald.fifo to stick with the example in the man page. My question
> is, how do I do that? Do I simply put a line in the script like this:
>
> /etc/diald.fifo down
>
> or do I need to pipe the command somehow?
>
> TIA,
> Sean
>
> ------------------
> Theo. Sean Schulze
> [EMAIL PROTECTED]
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]