View Single Post
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#117
About redirecting output to a file:
Code:
application-name > logfile.txt 2>&1
The above redirects stdout to logfile.txt and stderr to stdout (and thus also to logfile.txt)

If you want to capture everything to file and also to console, try this.
Code:
application-name 2>&1 | tee logfile.txt
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post: