I have to run a script background and also i have to catch the STDERR and STDOUT . i'm using the below line .
test.sh & >> log_file 2>&1
But un fortunately nothing is getting written to log_file
Please help me here
Note the position of the background
test.sh >> log_file 2>&1 &
( echo stdout; echo >&2 stderr )& >> log 2>&1; sleep 0.1; echo LOG:; cat log
and shows that both stdout and stderr get to the log.
The error must be somewhere in your