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



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
split monthly logfiles into daily logfiles clzupp Shell Programming and Scripting 1 11-07-2008 08:07 PM
Displaying output from df -k in GB instead of KB LinuxRacr Shell Programming and Scripting 6 09-19-2007 04:31 PM
Redirecting OUTPUT Chanakya.m Shell Programming and Scripting 1 08-13-2007 04:27 PM
Output all commands to logfiles ??? fawqati UNIX for Advanced & Expert Users 2 06-21-2006 03:47 AM
Redirecting output to multiple log files? darthur UNIX for Dummies Questions & Answers 3 01-15-2002 12:54 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #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??
  #2 (permalink)  
Old 06-30-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,546
Code:
some_command > logfile1 2>logfile2
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0