7

I would like to watch a movie with mplayer from bash in the background, like I do with all programs and there has never been any problems:

mplayer Kick* &

if you'd like to see Kickboxer, for example. But, this doesn't bring up the window, instead it says the process is stopped. I can bring the movie window up with fg mplayer, but then the CLI is unavailable. (This is -- as far as I can see anyway -- equivalent to mplayer Kick*).

I'm able to work around the problem like this:

$(mplayer Kick*) &

But then I get two extra bashes (I see this with ps). It is not really a problem as those closes down when I Alt-F4 the movie, but it is still undesirable.

I guess I'm most annoyed with having to type that extra stuff, so if you come up with an alias or function, that would be OK, to. Although, it wouldn't hurt me to learn what's going on.

7
mplayer -noconsolecontrols <whatever> &
1
mplayer -noconsolecontrols -really-quiet 2>/dev/null *.ogg &
0

This is works for me:

mplayer *.ogg </dev/null >/dev/null 2>&1 &

source: [SOLVED] how to run mplayer in background with command line ?

and keeping after leaving the terminal to:

nohup mplayer *.ogg </dev/null >/dev/null 2>&1 &

source: display - MPlayer halts when I exit the SSH session in Linux - Super User

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.