Hi Friends,
I am a beginner to shell script.I have run the shell script in tcsh shell.
In my shell script code,I am trying to redirect output to a file.
But getting ambiguous redirect
Code:
su -c "exit" - prime310 > pnoutput.txt 2>&1
2>&1 redirect stdout and stderr to pnoutput.txt.(correct me if i am wrong)
I also tried in bash shell. but same ambiguous redirect error came.
I have searched in Google. but not able to
find clear solution.
Please help me to resolve this issue.
Regards,
Anand