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?
>
Here is a short script I got off the list awhile back. It was written by
[EMAIL PROTECTED] You would use 'diald-cmd delay-quit' to shutdown the
link when it goes idle.
#! /bin/sh
# diald-cmd - script to control the diald program
if [ "${1:-help}" != "help" ]; then
for CMD in $*; do
echo ${CMD} > /etc/diald/diald.ctl
done
else
echo " "; echo " "
echo "usage: `basename ${0}` option where option is:"
echo " "; echo " "
echo "block ......... hang up and block new calls"
echo "unblock ....... remove the effect of block"
echo "force ......... call, and stay up until \"unforce\""
echo "unforce ....... remove the effect of force"
echo "down .......... force the link down"
echo "up ............ force the link up"
echo "delay-quit .... terminate when current link goes idle"
echo "quit .......... force link down and terminate"
echo "reset ......... reset & re-read configuration options"
echo "debug <flags> . set the debug flags to the given value"
fi
#--- end of script
--
===============================================================
Kevin Fonda Email: [EMAIL PROTECTED]
5 Main St. Phone: (732) 223-2013
Manasquan, NJ 08736 Fax : (732) 223-3431
===============================================================
LINUX, the choice of a GNU generation
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]