is this possible ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting is this possible ?
# 1  
Old 10-27-2005
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
# 2  
Old 10-27-2005
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).
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question