Glam Prestige Journal

Bright entertainment trends with youth appeal.

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

1 Answer

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

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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