It is currently Sat, 04 Feb 2023 12:04:22 GMT



 
Author Message
 please help...question about how to get output of two commands simultaneously

Hi,

I am trying to display (to screen or file, doesn't matter) the output of
two commands/programs: One is continuous output from qtalk, the other is
date (which displays time and date). I would like each line of data that
qtalk outputs to be accompanied by the _time_ of output. Is this
possible? Redirecting and pipes doesn't seem to be working.

I appreciate _any_ words of advice. Thank you.

Young-Soo Lim
y...@fas.harvard.edu



 Tue, 14 Dec 1999 03:00:00 GMT   
 please help...question about how to get output of two commands simultaneously

How about something like:-

commands ... blah blah ... | ( while read x ; do echo `date` ${x}; done )



 Tue, 14 Dec 1999 03:00:00 GMT   
 please help...question about how to get output of two commands simultaneously

        I am not sure if this would work, you might want to try the command
script.
Its output is in the file typescript once you exit.

--
-----------------------------------------------------------------
Tri Tram, Computer Science and Engineering at UCLA
http://www.seas.ucla.edu/~tram



 Tue, 14 Dec 1999 03:00:00 GMT   
 
   [ 3 post ] 

Similar Threads

1. question - send one print to two printers simultaneously

2. Can't get two 3c509s two work simultaneously

3. Getting two outputs to /dev/dsp

4. Getting output of a system command into a C variable

5. Two Questions, please help

6. getting two windows to pop up with one command


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software