Discussion:
How can I also dump all the console output to a text file?
(too old to reply)
2005-11-17 14:25:05 UTC
Permalink
When I run my applications in forground (or in background) I can see their
console output on my terminal.
How can I also dump all the console output to a text file? (I want both
console output and save to text file simultaneously)
Lars Kellogg-Stedman
2005-11-17 14:39:54 UTC
Permalink
Post by
How can I also dump all the console output to a text file? (I want both
console output and save to text file simultaneously)
'man tee' may get you closer to a solution.

-- Lars
--
Lars Kellogg-Stedman <***@jetable.net>
This email address will expire on 2005-11-23.
Chris F.A. Johnson
2005-11-17 16:28:13 UTC
Permalink
Post by
When I run my applications in forground (or in background) I can see their
console output on my terminal.
How can I also dump all the console output to a text file? (I want both
console output and save to text file simultaneously)
To save the output of individual commands, use tee:

command | tee FILE

To save the entire session, use the script command.
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
Continue reading on narkive:
Loading...