[LUNI] Capturing what comes accross the screendoug_dallmer doug_dallmer at netzero.netTue Jun 3 13:35:09 CDT 2003
From: "Jay Strauss" <me at heyjay.com> Sent: Tuesday, June 03, 2003 9:37 AM | use tee, that way you can direct the output to a file as well as | see it on the screen | I would like to see it on the screen and have tried to use "tee" a shown below. > > I have tried " cpio -icdumv <archive_all tee list " > I obviously had the wrong format and will check the man page. [Later] I tried " cat /etc/fstab | tee screen_capture" it worked fine. I tried " cpio -icdumv <archive_all | tee screen_capture " it worked for creating the files. The file screen_capture was created but had zero bytes in it. From: "Gerald Guglielmo" <gug at fnal.gov>> Sent: Tuesday, June 03, 2003 9:08 AM | Hi, | Probably not what you are looking for capturing the output, but | under bash I sometimes do the following: | | ./myscript > tmp.out 2>&1 This worked fine Thanks! From: "Benjamin Mayer Stocks" <stocksb at ieee.org>> Sent: Tuesday, June 03, 2003 9:13 AM | How about: cpio -icdumv < archive_all > output.txt | Sorry, this did not work. From: "Fred Yankowski" <fred at ontosys.com> Sent: Tuesday, June 03, 2003 9:19 AM > In general I would also like to capture what goes across the screen >and in from the keyboard so that I could go back and review how I >got to some place. | | I use the 'script' command when I want a log of terminal I/O, such | as when I run 'make install' on some package and want a record of | where stuff was installed. | This worked fine. Thanks!! Although as the man page points out the printed version of the capture file is fine, to "vi" or "cat" the file is a bit painful because of all of the control characters that are captured. Thanks one and all for your help. Doug Dallmer
More information about the luni mailing list |