[wplug] background

Matthew Danish mdanish at andrew.cmu.edu
Tue May 20 15:19:02 EDT 2003


On Tue, May 20, 2003 at 03:10:36PM -0400, Chris wrote:
> Say that I have a script that I want to run in that background and redirect
> it's output.  Would I do this?
> 
> # test.sh& > test.log

No.  & is a command separator, like ;.

test1 & test2 & test3 & test4

runs test1-3 in the background and test4 in the foreground

test.sh > test.log & should work

You might also want to do test.sh 2>&1 > test.log & if you want stderr
redirected as well (and you are using bash).

-- 
; Matthew Danish <mdanish at andrew.cmu.edu>
; OpenPGP public key: C24B6010 on keyring.debian.org
; Signed or encrypted mail welcome.
; "There is no dark side of the moon really; matter of fact, it's all dark."



More information about the wplug mailing list