[LUNI] Capturing what comes accross the screen
Gerald Guglielmo
gug at fnal.gov
Tue Jun 3 09:08:57 CDT 2003
Hi,
Probably not what you are looking for for capturing the output, but
under bash I sometimes do the following:
./myscript > tmp.out 2>&1 # stdout and stderr to tmp.out
./myscript > tmp.out 2> tmp.err # stdout to tmp.out and stderr to tmp.err
Does help with the keyboard capture but can be useful. Also the first
method is best when the output is sparse and the second when there is a
lot of output and you want to easily see if there were any errors. There
are many tools you just need to find one you like for the job at hand.
If no one comes up with a tool for capturing input, maybe a small script
can be written to write and execute what you type. I haven't tried this
myself but I bet someone else has.
doug_dallmer wrote:
> I have set up RedHat 8.0, operate at init level 3 as root and now need
> to restore from a cpio archive file.
>
> The " cpio -icdumv <archive_all " seems to work fine. However, every once
> in a while I see the message about skipping 4096 bytes of bad data
> interspersed with the list of path/file_names being created.
>
> I need a way of capturing what is streaming across the screen during the
> cpio command so that I can identify the files that may be corrupted. I
> have other cpio'd files of various parts of the complete restore so I can
> probably extract good copies of the corrupted files from these (I hope).
>
> I have tried " cpio -icdumv <archive_all tee list " " cpio -icdumv
> <archive_all | list " with no success. Any suggestions??
>
> 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
> (usually in trouble in "river city").
>
> Doug Dallmer
>
> ______________________________________________________________________
> Linux Users Of Northern Illinois - Technical Discussion
> luni at luni.org
> http://luni.org/mailman/listinfo/luni
>
--
-Jerry->
gug at fnal.gov
Pepe's Theory of everything: "Under the right circumstances, things happen."
More information about the luni
mailing list