Hi friends
I am facing one problem while redirecting the out of the stderr and stdout to a file
let example my problem with a simple example
I have a file (say test.sh)in which i run 2 command in the background
ps -ef &
ls &
and now i am run this file and redirect the output to a file (say output.log)
./test.sh > output.log
Now the result stored in the file is not like that first ps -ef and than ls
it mixed the output of both command
Now help me so thats i can store the result in the file only one after another
Since we cannot understand whats your goal (since the examples you gave are not representatives...) either you agree with fmurphy's proposal or you create 2 separate output files...