Run mplayer in background with no stdin,no stdout,no stderr.
Code:
~$ mplayer fly.mp3 0</dev/null 1>/dev/null 2>&1 &
It can be simplied as
Code:
~$ mplayer fly.mp3 </dev/null >/dev/null 2>&1 &
1.Run mplayer in background with no stdin.
Code:
~$ mplayer fly.mp3 </dev/null &
`ctrl+c` can't kill the playing ,it means that `Run mplayer in background with no stdin` take effect.
2.Run mplayer in background with no stdout.
Code:
~$ mplayer fly.mp3 1>/dev/null &
[1] 8561
jobs
[1]+ Stopped mplayer fly.mp3 > /dev/null
`mplayer fly.mp3 0</dev/null 1>/dev/null 2>&1 &` can run mplayer in background with no stdin ,no stdout ,no stderr,
why `mplayer fly.mp3 1>/dev/null &` can not run mplayer in background with no stdout?
3.Run mplayer in background with no stderror.
Code:
~$ mplayer fly.mp3 2>/dev/null &
[1] 6874
~$ MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team
Why no voice?