I was simply trying to redirect some output in a log file but it foxed me.
truss a.out > log
It gave only the output of the a.out which was only a simple print "Hello"
Then I tried
truss a.out 2&1>a
echo `truss a.out` > a
All failed.
What am i missing.
Thanks
Phew,
So simpleeeeeeeeeeeeeeeeeeeee
By the way, can you explain this to me.
vino
4
Check out man bash under the title
Redirecting Standard Output and Standard Error
Basically it says, redirect standard output and standard error to output.
Vino
Another way to do it (and also find the answer to the original redirection question....)
man truss
-o outfile
File to be used for the trace output. By default, the
output goes to standard error.
Cheers
ZB
Later on when i realised what i was doing with a cool mind, I was laughing on myself.
I knew it, but sometimes 
vino
8
On a much much lighter note, (quoting from the movie Serendipity)
If you want to improve, be content to be thought foolish and stupid.
Cheers' & Good times ahead !
Vino