standard input to commands in a shell script
Booker bense
booker at network.ucsd.edu
Sat Oct 13 09:25:04 AEST 1990
In article <1990Oct12.025833.13376 at cubmol.bio.columbia.edu> ping at cubmol.bio.columbia.edu (Shiping Zhang) writes:
>When I invoke the following script, the process always pauses at
>the password prompt. I have to hit the return key to make it
>proceed. I don't know what's the problem. Do you have the same
>problem if you try it? I'm working on a Sun-3 with os4.1. I appreciate
>it if anyone can point out the problem for me. Thanks.
>
># cut here
>ftp genbank.bio.net << END
>ftp
>ident
>ls
>quit
>END
Ftp reads the password from /dev/tty there's no simple way to get
around this , however I would suggest you read the man page on netrc.
It allows you to put ftp in scripts.
-Booker C. Bense
/* benseb at grumpy.sdsc.edu */
.line fodder
More information about the Comp.unix.shell
mailing list