[Thread Prev][Thread Next][Index]
Re: [ferret_users] Question about using script
Hello Ming,
| #!/bin/ksh -x
|
| ferret<<EOF
It seems that the problem has something to do with how
ferret reads the standard input.
I've confirmed that a short script like
#!/bin/ksh
ferret<<EOF
set data "somedata.nc"
fill/k=1/l=1 var
quit
EOF
works. I've also tested your script and reproduced your error
messages. I've also found
1) that when I have only two "set data . . . " lines, the script
works;
2) that a third "set data . . . " mangles ferret's output;
3) that even comment lines affect the results.
As to point (3), try add lines entirely consisting of "!" symbols
like "!!!!!!!!!!!" and you'll see differences.
All these seem to point toward how ferret buffers and reads
the standard input.
Ryo
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement