piping stderr & stdout to /dev/null
I've never worked with stderr and stdout before. I have an application that sends an obscene number of messages to the Console log, so implemented the following shell script to launch it in future:
/Volumes/Storage/Shared/Games/UrbanTerror/ioUrbanTerror.app/Contents/MacOS/ioUrb anTerror.ub >> 2&>1 /dev/null
No further entries appeared in the Console so I thought I was sorted, but then I discovered two files in the root of my Home directory called 1 and 2 respectively, and these contained the log outputs. I thought /dev/null was supposed to be the computer equivalent of "oblivion," so have I implemented the shell script incorrectly?
Also, can someone further modify my script so that stdout goes to /dev/null and stderr goes to a log file in a location of my choosing?
Many thanks,
S.
MacBook Pro MB470LL/A, 4GB RAM, Mac OS X (10.6.5), ; Mac Pro 2010 10.6.5; iPhone 3GS 16GB iOS4.0.2; AEBS MA053LL/A