while executing
cat test.txt | java myfile > test1.txt 2> test2.txtI am getting error "Ambiguous output redirect."
my java file contains System.out and System.err .
I am in Unix csh environment.
31 Answer
got it in unix tcsh env i can run as follows :
(cat test.txt | java myfile > test1.txt) >& test2.txt