[arm-allstar] problem running bash script
David McGough
kb4fxc at inttek.net
Wed Oct 31 18:52:23 EDT 2018
Well, let's try this again. I got this bounced from my other email address
for (spam??)
Anyway, I have 3 bash script files that pertain to playing amatuer radio
newsline.
playnewsline
yesnews.sh
nonews.sh
Each of these works fine if I putty in to the node and execute them (i.e.
./playnewsline)
yesnews.sh creates a marker file called newsenable. When playnewsline runs,
it checks to see if that file is there. If it isn't, playnewsline
terminates without taking action. If the file exists, the newline files are
played locally on the node.
in my rpt.conf file, I have
82=cmd,/usr/local/sbin/say24time.pl 48013
232=cmd,/usr/local/sbin/playnewsline
230=cmd,/usr/local/sbin/nonews.sh
231=cmd,/usr/local/sbin/yesnews.sh
If I send dtmf *82 on the handheld, I hear the time read back.
If I send dtmf *232, *230, or *231, nothing happens.
If I putty into the node and cd /usr/local/sbin and then manually
./yesnews.sh, or ./nonews.sh. or ./playnewsline, the scripts are executed
with no problems.
So what am I missing?
More information about the ARM-allstar
mailing list