Hi all - this must be simple but I can't find the answer. I want to have my computer check the status of the server via a bash script in cron
For example, I want to query whether the player is playing or stopped (then, say, if it's stopped and it's after midnight, have the sound system turn off and other automated functions like that). Is there a way to do that sort of thing? More detail: I'm thinking of a script like this: #!/bin/bash check: is radio playing something? If yes, leave it be fi If no, turn off attached amplifier etc. fi which I can put in cron ... I know how to do everything except query the squeezebox server ------------------------------------------------------------------------ albright's Profile: http://forums.slimdevices.com/member.php?userid=35256 View this thread: http://forums.slimdevices.com/showthread.php?t=100757 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
