[MPlayer-users] One instance of mplayer, no more

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Oct 15 21:29:19 CEST 2007


Hello,
On Mon, Oct 15, 2007 at 09:23:10PM +0200, Alexander Roalter wrote:
[...]
> how about
> 
> #!/bin/sh
> killall -INT mplayer
> mplayer $@
> 
> as ~/bin/mplayer?
> 
> as for the $@ i think it's the correct one, but I'm not completely sure...

Yes, but you should always use it in "", so
mplayer "$@"
otherwise you'll get problems if one of the arguments contains e.g. spaces.

Greetings,
Reimar Döffinger



More information about the MPlayer-users mailing list