It is currently Mon, 25 Sep 2023 11:18:50 GMT



 
Author Message
 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.

Thanks,

Paul Novak
Paul.No...@cibadiag.com



 Mon, 11 Jan 1999 03:00:00 GMT   
 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



 Mon, 11 Jan 1999 03:00:00 GMT   
 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.

Its in the man pages, just not pointed to very clearly.

man netrc.

It explains rather clearly.

: Paul Novak
: Paul.No...@cibadiag.com

dan cohn
consulting admin and piano player



 Mon, 11 Jan 1999 03:00:00 GMT   
 Script/Command line args for FTP needed!!

In article <4t7u1d$...@news0-alterdial.uu.net>,

Look at the man page for ncftp - i think that does what you are looking for.

--
Dr. P. J. Sanders           |       Phone : +44 (0) 1203 523523 Ext. 2218
Mathematics Institute       |       E-mail : p...@maths.warwick.ac.uk
University of Warwick       |                p...@geom.umn.edu
Coventry CV4 7AL, U.K.      |       WWW : http://www.maths.warwick.ac.uk/~pjs



 Tue, 12 Jan 1999 03:00:00 GMT   
 
   [ 4 post ] 

Similar Threads

1. csh script command line args

2. command line args in csh scripts (-f and -d)

3. CGI commands with command line args?

4. how to set argv command line args for ps

5. getRuntime().exec() of command line kermit ftp script causes SIGSEGV, shell launch does not

6. How to find out all the input args of a long command line

7. How to hide command line args under Solaris

8. Command-line args in C

9. Command line args

10. command line args and 'if'


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software