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 > UNIX for Dummies Questions & Answers
.
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 06-30-2009
akhila akhila is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 1
help in redirecting output to multiple logfiles without displaying it on the screen

Hi,

1.
Code:
some_command > logfile1 2>&1
will redirect everything to the file logfile1 without displaying the output of the command on the screen.
2.
Code:
some_command | tee logfile1 | tee logfile2
will redirect the output to logfile1 and logfile2, as well as display the output of the command on the screen
please correct me if i am wrong as i am new to shell scripting..
Is there a way to redirect everything that would appear on the terminal to multiple logfiles without displaying it(output) on the terminal??