
Script/Command line args for FTP needed!!
: Does anyone have the correct format for passing FTP all the
: information needed to complete a file transfer? i.e. hostname
: username, password, directory path and filename? I am trying
: to automate FTP and have been told by many people that it
: is possible, however I have yet to see it myself. Man pages
: don't help a bit and I cannot find any other documentation on
: this.
Chop out the bits you don't need. I doubt you are connected
via cu as I am... disgustingly primitive!
If you want to keep actual passwords in a persistent .netrc file,
you'll have to use a scriptable editor (like ed or perl) to pitch out
the previous "macdef init" while keeping the various "machine" lines.
Be aware that some system administrators shoot without warning when
they find a .netrc file, as they potentially contain lists of plaintext
passwords. The file MUST have no access for group or other, but on
hosts without ACL's root can always read them. So I encourage you
to use .netrc only for anonymous ftp. ... rb