Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!bu.edu!snorkelwacker!paperboy!meissner From: meissner@osf.org (Michael Meissner) Newsgroups: comp.unix.shell Subject: Re: standard input to commands in a shell script Message-ID: Date: 12 Oct 90 19:28:54 GMT References: <1990Oct12.025833.13376@cubmol.bio.columbia.edu> <7219@muffin.cme.nist.gov> Sender: news@OSF.ORG Organization: Open Software Foundation Lines: 37 In-reply-to: barnett@grymoire.crd.ge.com's message of 12 Oct 90 17:31:23 GMT In article barnett@grymoire.crd.ge.com (Bruce Barnett) writes: | > In article <1990Oct12.025833.13376@cubmol.bio.columbia.edu> | > ping@cubmol.bio.columbia.edu (Shiping Zhang) writes: | | >>ftp genbank.bio.net << END | >>ftp | >>ident | >>ls | >>quit | >>END | | In article <7219@muffin.cme.nist.gov> libes@cme.nist.gov (Don Libes) writes: | | >The problem is that ftp (as do most programs) reads passwords from | >/dev/tty, ignoring your i/o redirection. There is no shell mechanism | >to get around this. | | News to me. I have always done this, which works fine. | | set HOST=`hostname` | set SOURCE=machine.edu | set temp=/tmp/file | ftp -n $SOURCE <