linux/bash output redirection

Red Squirrel

No Lifer
May 24, 2003
71,332
14,092
126
www.anyf.ca
Is there a way to do a &> output redirection (everything, even errors) but make it append? I figured &>> would work, but it errors out.
 

Red Squirrel

No Lifer
May 24, 2003
71,332
14,092
126
www.anyf.ca
Won't 2> only output errors though? I want to output (append) everything, errors, non errors. It's for a weird UPS software that outputs stuff at random places including the server's main console which is never looked at.
 

xcript

Diamond Member
Apr 3, 2003
8,258
2
81
Originally posted by: RedSquirrel
Won't 2> only output errors though?
>>foo is sending stdout to the file, 2>&1 is sending stderr to wherever stdout is going.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Oddly enough there's a section in the bash man page called "Redirecting Standard Output and Standard Error"