SUMMARY: Multiple Standard Output

From: Murat BAYRAKCI <murat.bayrakci_at_siemens.com.tr>
Date: Tue Aug 21 2001 - 10:50:55 EDT
 I got more than 21 replies in less than 20 minutes. ( I couldn't even see
my 
query on my incoming sunmanagers mail list  , but started getting answers
after a minute  sending it ..  
Amasing isn't it? )

	" tee "  must be a well known program , so shame on me,  I guess..!
:-)
	  

In my case :  

#  mkisofs blah blah | cdrecord blah blah  -  2>&1 | tee /mylogfile.log 

so that I can send the content of the log file as email and see everything
on the screen as well .


Thanks a lot people.. 






----------------------------------------------------------------------------
-------------
ORIGINAL QUESTION WAS:

Hi managers,  

	I've been writing a script to automate cdwriting process for the
users.  Script is interactive and asking questions , 
ends up with cdrecord command,  after which you see output of cdrecord
program .  Interactive questions are fullfilling " cdrecord "  's optional
parameters. 

Anyway,  How would you make it possible seeing  the output interactively ,
at the same time you can redirect it
to a file or to a program like " mail " ..  ?

In other words; 

#    mkisofs blah blah |  cdrecord -v -eject speed=$speed4  dev=0,0,0 -data
-  |  Both Standard Output ( screen )  and also to a file



I should see what is going on during writing CD  but also want to send same
output via e-mail .....  




Thanks in advance , 
will surely summarise your answers...

Murat BAYRAKCI
Senior Unix Systems Administrator
ICN S SI @ Siemens AG
---------------------------------------------------------------------------
This message is intended solely for the use of the individual or
organisation to whom it is 
addressed and may contain confidential or copyrighted information.
If you have received this message in error,
please reply to the originator and delete it immediately.
If you are not the intended recipient, you should not use, copy, alter,
disseminate, print or disclose the contents of this message.
Information or opinions expressed in this message and/or any 
attachments are those of the author and are not necessarily those of SIEMENS
AG.
---------------------------------------------------------------------------
Received on Tue Aug 21 15:50:55 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:25:02 EDT