djkraven

mplayer wfuv.sh

Nov 15th, 2021
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # cat wfuv.sh
  2. #cat /dev/null>nohup.out;nohup mplayer http://wfuv-onair.streamguys.org:80/onair-aacplus &
  3. killall mplayer
  4.  
  5. cat /dev/null>nohup.out
  6. cat /dev/null>wfuv.log
  7. cat /dev/null>wfuv.2.log
  8.  
  9. nohup mplayer http://wfuv-onair.streamguys.org:80/onair-aacplus 1>wfuv.log 2>wfuv.2.log &
  10.  
  11. while :
  12. do
  13. clear;
  14. cat wfuv.log |awk -F\' '{print $2}'|gawk -F\- '{if ($1!~/^[ ]*$/) print strftime("%a %m/%d %r") "---------" "\nArtist..: " $1 "\nTitle...:" $2 "\n"}';
  15. sleep 05;
  16. done
  17.  
  18. killall mplayer
  19.  
Advertisement
Add Comment
Please, Sign In to add comment