On Tue, 18 Jan 2005, Alexandre Pashai wrote:

It seems not to be correct:

in monitor, if do echo "doggy bag", i get the following in alarm stdin ($*)
$* = "-s XXXXX -g YYYY -h 148.25.32.65 -t 110002124515 148.25.32.65"

the second "148.25.32.65" is from the mon.cf (alarm line arg)

So no trace of my custom string "doggy bag" from stdin (alarm)

trust me, this is how it works. i suspect you have a problem with your script. $* is not stdin, it's the positional parameters passed on the commandline. if you're writing this in /bin/sh then the monitor would read stdin like this:

while read a
do
        echo "a=$a"
done

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to