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.

3
  • 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) Mar 23, 2010 at 5:52
  • i am using tcsh .
    – Harshit
    Mar 23, 2010 at 5:55
  • I am sad for you. Mar 23, 2010 at 10:10

1 Answer 1

1

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .