1

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.

  • 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
1

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

(cat test.txt | java myfile > test1.txt) >& test2.txt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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