standard input to commands in a shell script

Pierre Rogier rogier at caligula.ec.bull.fr
Tue Oct 16 04:52:41 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 read passwd from /dev/tty and not from standard input

I use the following script :
ftp -n my_machine <<END
user ftp ident
ls
quit
END



More information about the Comp.unix.shell mailing list