Raspi+MIPS wrote:
> Does anyone of you know a way to check a process if it is still
> "responsive"?
Perhaps checking if SBS still sees the player using the CLI ? Something
like this
Code:
--------------------
echo player id ? * | nc -w 1 127.0.0.1 9090
player id %3F 00%3A0d%3Ab9%3Ae9%3A91%3A33
# echo "00%3A0d%3Ab9%3Ae9%3A91%3A33 status 0 0" | nc -w 1 127.0.0.1 9090
00%3A0d%3Ab9%3Ae9%3A91%3A33 status 0 0 player_name%3ALocal%20Player
player_connected%3A1 player_ip%3A172.17.255.94%3A59389 power%3A0
signalstrength%3A0 mode%3Astop time%3A0 rate%3A1 duration%3A108.933
can_seek%3A1 mixer%20volume%3A100 playlist%20repeat%3A0 playlist%20shuffle%3A0
playlist%20mode%3Aoff seq_no%3A0 playlist_cur_index%3A14
playlist_timestamp%3A1357059980.41318 playlist_tracks%3A16
--------------------
and so on. If you do that in JSON instead of the ASCII stream it will
look better and be more sturdy.
------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix