getting error while doing cat command "Ambiguous output redirect."

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.

Harshit

Posted 2010-03-23T05:31:03.703

Reputation: 135

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 – 2010-03-23T05:52:11.593

i am using tcsh . – Harshit – 2010-03-23T05:55:58.497

I am sad for you. – Chris Johnsen – 2010-03-23T10:10:19.840

Answers

1

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

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

Harshit

Posted 2010-03-23T05:31:03.703

Reputation: 135