Re: auto FTP with .netrc

From: Erik C.J. Laan (news_at_elaan.dds.nl)
Date: 07/28/04


Date: Wed, 28 Jul 2004 23:11:12 +0200

Frank da Cruz wrote:
> : hu_mei@hotmail.com (mei) wrote in message
> : news:<243028f6.0407270105.596ca632@posting.google.com>...
> : I'm trying to set up an automatic ftp access to a remote server. The
> : purpose is to enable a local script to grab some files from the remote
> : server and update local records.
> :
> : I have created the .netrc file under /home with the following test
> : content:
> :
> : machine ftp.x.org login anonymous password rpf@umich.edu
> :
> : I know it seems to be a quite simple process yet it's not working for
> : me.
> :
> : It still asked me for username and password when I did: ftp ftp.x.org.
> :
> : How should I do it to disable prompt?
> :
> Rather than struggle with .netrc, you might want to read this:
>
> http://www.columbia.edu/kermit/ftpscripts.html
>
> - Frank

Or use ssh's 'scp' command with public/private key authentication (if
ssh is installed). Gets you a 'cp' like command and extra security as bonus.

HTH, Erik

-- 
--------------------------------------------------------------------------
Erik C.J. Laan				elaan at dds.nl
Please reply below the message, please cut unrelevant pieces from a reply.
--------------------------------------------------------------------------


Relevant Pages

  • Re: Installing TDK 4.0.4 trial with Tcl 8.5.1...
    ... Locate an ActiveTcl 8.4.9.1+ installation for use by the Tcl Dev Kit demos. ... Then the TDK installer continues with: ... remote server cannot handle this command ...
    (comp.lang.tcl)
  • Installing TDK 4.0.4 trial with Tcl 8.5.1...
    ... Locate an ActiveTcl 8.4.9.1+ installation for use by the Tcl Dev Kit demos. ... remote server cannot handle this command ...
    (comp.lang.tcl)
  • Re: Word toolbars
    ... Once Frank answers those questions, can anyone else in the same versions ... I'm not the best person to ask, because I would not know what a toolbar ... Microsoft might have named the command or even what category it chose ... command to go to the next tracked change is called ...
    (microsoft.public.mac.office.word)
  • Re: Reflection and order of the fields
    ... My code needs to run on both ... are command objects that have different data fields depending on the nature ... Because of my specific serialization requirements, I was hoping to write my ... Frank D. Lombardo ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Reflection and order of the fields
    ... My code needs to run on both ... are command objects that have different data fields depending on the nature ... Because of my specific serialization requirements, I was hoping to write my ... Frank D. Lombardo ...
    (microsoft.public.dotnet.framework)