standard input to commands in a shell script

Jonathan I. Kamens jik at athena.mit.edu
Mon Oct 15 01:29:50 AEST 1990


In article <BARNETT.90Oct12154348 at grymoire.crd.ge.com>, barnett at grymoire.crd.ge.com (Bruce Barnett) writes:
|> In article <MEISSNER.90Oct12152854 at osf.osf.org> meissner at osf.org (Michael Meissner) writes:
|> >   (echo "user anonymous"; echo "${USER-${LOGNAME}}@`hostname`"; echo dir; echo quit) | \
|> >	   ftp uunet.uu.net
|>  (echo "user anonymous ${USER-${LOGNAME}}@`hostname`"; echo dir; echo quit) | \
|> 	   ftp uunet.uu.net

  Neither of these examples will work, unless you supply "-n" option to ftp. 
Bruce, you got that right in your original posting on this subject, but forgot
it here :-).

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8495			      Home: 617-782-0710



More information about the Comp.unix.shell mailing list