"ambiguous redirectine" while redirecting the output from shell script -
demo.sh has following line:
. ./one.sh > ../results/myresult.txt 2>&1 when run ./demo.sh giving:
ambiguous redirectine 1: 1 but myresult.txt gets created @ appropriate location size 0 kb.
if remove redirection of output, script works fine. wrong script? have gone through ambiguous output redirect on solaris, shell script ambiguous redirect, ambiguous redirect - file gets created. nothing helped though.
if you're saving script dos-style line endings (crlf instead of lf), can produce of symptoms you're seeing.
change line endings using text editor or command-line utility of choice, try again.
Comments
Post a Comment