My tech notes
What a stupid human remembers, the smart one writes down!
Friday, November 14, 2008
Linux shell I/O redirecting
./my_script > file <-- Redirect standard output
./my_script 2> file <-- Redirect error output
./my_script &> file <-- Redirect all output
./my_script > file 2>&1 <-- Combined error and standard output
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment