Why don't you just use the perl sms.alert script? whats the fascination with bash?
On Tue, 2010-04-27 at 16:28 +0200, ad...@jack-clan.nl wrote: > No still ain't workin' > Pffft ,has anybody used a shell script as an alert before ( in daemon-mode > ) ? > Otherwise i ll start mon as a program, not as a daemon, or are there > reasons not to do so? > > thanks > > > sms.alert: > > > #!/bin/bash > > export > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > > /bin/echo "servers down test" | /usr/bin/gammu --sendsms TEXT 0653638072 > > > > Jim Trocki : > > > if it works when you do "-d -f" then from that shell do > > echo $PATH > > and put that path at the top of your bash script, e.g. > > #!/usr/bin/bash > > export PATH=/bin:/usr/bin:....whatever > > > > _______________________________________________ > mon mailing list > mon@linux.kernel.org > http://linux.kernel.org/mailman/listinfo/mon
_______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon