pwalden |
05-06-2011 11:07 AM |
Quote:
Originally Posted by TobiSGD
(Post 4347907)
Just start the player as would you do normally, but add an ampersand at the end of the command, like this:
|
Actually that will not work as mplayer reads from standard in and writes to standard out and error. When running mplayer in the background as suggested above, you will get a message:
Code:
[1]+ Stopped mplayer *.ogg
Which means that mplayer halts until it can get access to the in/out file descriptors. typing fg will restart mplayer, but it will run in the foreground. You can avoid this problem by redirection in/out to null.
Code:
mplayer *.ogg </dev/null >/dev/null 2>&1 &
|