Using mplayer with seme desktop symbols for streaming stations and wlan :-)

Robin Paulson robin.paulson at gmail.com
Sun Jan 4 00:41:27 CET 2009


2009/1/4 lollisoft <lothar.behrens at lollisoft.de>:
> I have tried that with a script like this (killall let the GUI bring up an
> error message I haven't yet got rid):
>
> Play a radio station
> #!/bin/sh
> killall mplayer
> mplayer http://yp.shoutcast.com/sbin/tunein-station.pls?id=7429
>
> Stop playing
> #!/bin/sh
> killall mplayer

killall isn't the cleanest way to stop an app running - iirc you only
want to use that when an app is misbehaving

one of the SIG signals might be better - have a look at SIGTERM and
SIGHUP and some of their brethren; i can't remember which is best
here.




More information about the community mailing list