The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-27-2005
Registered User
 

Join Date: Aug 2005
Posts: 23
is this possible ?

when ever you execute a command the out put has to be shown on the console as well as into a file .

Ex : /usr/bin/ftp -i -v -n > ftp.log

Here the output has to be sent to ftp.log file as well as to the console .

Can someone help me ?


Thanks
Srini
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-27-2005
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Look at the man page for the tee command - it would be able to send the output to the terminal and a file at the same time (don't know if the terminal you are doing this on IS the console - or if that is another thing you actually needed).
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0