Monday 8 February 2016

Start ices2 and remote mplayer in one command


To run ices2 on SOURCE_SERVER, and start up mplayer on TARGET_SERVER, and then shutdown ices2 after quitting the remote mplayer, in one command:

ices2 ~/ices-pulse.xml & ssh -t USER@TARGET_SERVER 'mplayer -cache 512 -cache-min 49 http://SOURCE_SERVER:8000/live.ogg' && killall ices2

No comments: