while executing

cat test.txt | java myfile > test1.txt 2> test2.txt

I am getting error "Ambiguous output redirect."

my java file contains System.out and System.err .

I am in Unix csh environment.

link|improve this question
can you be more specific than "unix csh"? are you using tcsh? on Linux? BSD? Solaris? AIX? HPUX? (oh gawd, tell me you're not on HPUX... please... i still have nightmares) – quack quixote Mar 23 '10 at 5:52
i am using tcsh . – Harshit Mar 23 '10 at 5:55
I am sad for you. – Chris Johnsen Mar 23 '10 at 10:10
feedback

1 Answer

up vote 1 down vote accepted

got it in unix tcsh env i can run as follows :

(cat test.txt | java myfile > test1.txt) >& test2.txt
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.