Squeezeplug = Debian
Manually ran using ~ $ sudo after changing all nc to /bin/nc and adding
echo $PATH >> $LOGFILE
Code:
--------------------
pi@Outside ~ $ sudo /usr/local/bin/playercheck.sh
--------------------
returned
Code:
--------------------
/usr/local/bin/playercheck.sh: 21: /usr/local/bin/playercheck.sh: Syntax
error: Bad for loop variable
--------------------
/tmp/playercheck.log shows only the following
Code:
--------------------
============================================
Sun Mar 9 10:46:21 CDT 2014
There are 5 known players.
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
--------------------
Manually ran using root ~ # (performs same as before changes to nc)
no error at runtime
/tmp/playercheck.log shows
Code:
--------------------
============================================
Sun Mar 9 10:51:09 CDT 2014
There are 5 known players.
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Player Bedroom is already powered off.
Player Bathroom is already powered off.
Player Outside is already powered off.
Player MusicSystem is already powered off.
Player nr 4 is called Garage.
Player Garage is playing fine.
--------------------
User ~ $ crontab -e has no valid entries
User ~ $ sudo crontab -e and Root ~ # crontab -e both have
Code:
--------------------
*/15 7-23 * * * /usr/local/bin/playercheck.sh
--------------------
After cron run /tmp/playercheck.log shows only
Code:
--------------------
============================================
Sun Mar 9 11:00:02 CDT 2014
There are 5 known players.
/usr/bin:/bin
--------------------
Thanks again, I really do appreciate your help
Jesse
------------------------------------------------------------------------
Girth's Profile: http://forums.slimdevices.com/member.php?userid=62640
View this thread: http://forums.slimdevices.com/showthread.php?t=99916
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix