Article View: comp.unix.shell
Article #1483Re: standard input to commands in a shell script
From: Booker bense
Date: Fri, 12 Oct 1990 23:25
Date: Fri, 12 Oct 1990 23:25
30 lines
1207 bytes
1207 bytes
In article <1990Oct12.025833.13376@cubmol.bio.columbia.edu> ping@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@grumpy.sdsc.edu */ .line fodder
Technical Details
Message-ID:
<3855@network.ucsd.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!network.ucsd.edu!bookerReferences:
<1990Oct12.025833.13376@cubmol.bio.columbia.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!network.ucsd.edu!booker From: booker@network.ucsd.edu (Booker bense) Newsgroups: comp.unix.shell Subject: Re: standard input to commands in a shell script Message-ID: <3855@network.ucsd.edu> Date: 12 Oct 90 23:25:04 GMT References: <1990Oct12.025833.13376@cubmol.bio.columbia.edu> Organization: San Diego Supercomputer Center @ UCSD Lines: 30