On Mon, 26 Apr 2010, ad...@jack-clan.nl wrote:

ok, i read a lot about setting paths in your bash profile but that isn't
what you mean i think,
a daemon is already active without a user logged in?

but when i look at my script i specify the path to gammu in the second
line :
that should be enough or am i thinking the wrong way?


#!/usr/bin/bash

echo "servers down test" | /usr/bin/gammu --sendsms TEXT 12345678

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

Reply via email to