The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-28-2008
indianwomen indianwomen is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 1
Redirection problem

hi
i want a solution for the fallowing:
i am redirecting output from bash script in which we are running background commands like
./test.sh
contains
ls -l &
ps

when we do as
./test.sh 1> test.txt 2>&1

but test.txt not containing output as ls -l and ps.
it showing ls -l, ps and ls-l output means output of ls -l is repeating.
please give the solution to get ls -l and ps output only.