[ale] Auto-ftp

Michael H. Warfield mhw at wittsend.com
Wed Oct 16 12:45:38 EDT 1996


Eric Hunter Eidson enscribed thusly:

> > I'm trying to write a shell script that will ftp a file from one machine
> > to another, using anonymous login . FTP does not seem to like my
> > redirected inputs . Anyone have any hints on this ?
> > 
> > 						Thanks,
> > 						   Dave
> I seem to remember that both FTP and TELNET are pains about handling redirects
> in.  I was told the only way to automate an FTP is to use expect, which works
> with tcl/tk.  One other possibility is to use NcFTP
> (ftp://ftp.probe.net/pub/ncftp) which allows you to specify on the command
> line, the ftp type URL to Anon. FTP from.  Most Linux distributions have an 
> older version 1.9.x, which I don't remember if it supports this or not.

>                 Hope this helps...

	Take a look at the mirror and pmirror packages.  The mirror package
has its own build-in perl library for doing ftp's while pmirror does exactly
what you are talking about.  It uses the "real" ftp and redirects input
and output through pipes.  They are both perl script packages and not totally
intractable to understand.  The pmirror package will show you exactly how
you need to do this, even if it won't do the job for you.  I use pmirror
for doing auto-ftp.  Just modify the script paramters and turn da sucker lose!

>                 --Hunter

> -- (chSig Random Fortune Signature V2.0)
> Sigmund's wife wore Freudian slips.

	Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw at WittsEnd.com
  (The Mad Wizard)      |  (770) 925-8248   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!






More information about the Ale mailing list