Pandemonium
Lijsterbeslaan 3
B-2940 Stabroek, Belgium
IBAN: BE78 9794 3692 5286
BIC: ARSPBE22XXX
KBO: 0314.595.348
VAT: BE 0 881.023.185
request blrootsales@pandemonium.be
ID:  Pass:    [ Not logged in. ]

 Redirect standard output and error output to one file instead of console  
 Vincent Verbeke
Joined 2007-04-11 21:00:49.
(3940 Days old)

Redirect standard output and error output to one file instead of console

Posted on: 2011-02-14 05:48:08 
IP: Logged 
 Going to post this here because I keep forgetting..

It is possible on linux to redirect both the standard output AND the error output and append the result to one file.

The trick here is to specify the file redirection first and then the error console redirection:


:::you@yourcomp:/tmp::: yourcommand >>outfile.txt 2>&1



  Showing entry "Redirect standard output and error output to one file instead of console ".
Pandemonium 2009


These pages are the intellectual property of the Pandemonium crew.
Welcome to Pandemonium.be - Antwerp based development studio providing development and administration services. Developers and maintainers of the Pyromasaur 3D framework.
Secure
"