FTP Macro

Timothy Payne tim at tmpco.com
Mon Oct 25 02:34:18 UTC 2004


On Sun, 2004-10-24 at 19:10, Chuck_Sterling wrote:
> Timothy Payne wrote:
> 
> > It will log in but not run the commands, I've tried all kinds of
> > changes
> > but the samples in my book and on the web say this should work.  I
> > just get ftp> after the login and it sits there taunting me.
> > 
> > machine mydomain.com login name password XXXXXX macdef macro-name
> > cd /backup
> > lcd /home/timothy/backup
> > put *.gz.gpg
> > quit
> > 
> > 
> > 
> > Any ideas would stop me from pulling out my hair :-)
> > 
> > Tim...
> > 
> 
> If you're not using the .netrc file, you should have a look at how it's
> used. Once that is set up right, you can probably just echo the
> commands to ftp with a pipe. I haven't done this with Fedora or other
> Linux distributions, but do so routinely with Solaris...
> 
> Chuck

That is my .netrc file, the log in is fine it just won't do the macdef.

sorry about the double post but my mailer freaked out for some reason.




More information about the users mailing list