standard input to commands in a shell script

Bruce Barnett barnett at grymoire.crd.ge.com
Sat Oct 13 05:43:48 AEST 1990


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

Try:

 (echo "user anonymous ${USER-${LOGNAME}}@`hostname`"; echo dir; echo quit) | \
	   ftp uunet.uu.net
--
Bruce G. Barnett	barnett at crd.ge.com	uunet!crdgw1!barnett



More information about the Comp.unix.shell mailing list