in reply to Re^4: Execute by order
in thread Execute by order
However, by just doing the above, the backgrounded command will suspend if it needs to write to either device 1 or device 2 (STDOUT/STDERR in perl parlance), or read from device 0 (STDIN), so command is usually rewritten as command >file 2>&1 & to send all output from stdout and stderr to file.
If you don't care about output from either stdout or stderr, the frequently seen idiom - command >/dev/null 2>&1 & - is used.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Execute by order
by BrowserUk (Patriarch) on Aug 13, 2009 at 14:06 UTC | |
by Bloodnok (Vicar) on Aug 13, 2009 at 14:11 UTC | |
by BrowserUk (Patriarch) on Aug 13, 2009 at 14:47 UTC | |
by Anonymous Monk on Aug 14, 2009 at 06:32 UTC | |
by BrowserUk (Patriarch) on Aug 14, 2009 at 07:36 UTC | |
by Anonymous Monk on Sep 16, 2009 at 08:01 UTC |