Re: Non interactive ftp
From: Damir Delija (ddelija_at_PUBLIC.SRCE.HR)
Date: 09/16/05
- Previous message: C. Antone: "Corey Antone/cantone/DFSI is out of the office."
- In reply to: Faisalq_at_CYBER.NET.PK: "Non interactive ftp"
- Next in thread: Robert Binkley: "Re: Non interactive ftp"
- Reply: Robert Binkley: "Re: Non interactive ftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 16 Sep 2005 18:32:48 +0200 To: aix-l@Princeton.EDU
On Fri, Sep 16, 2005 at 05:08:19PM +0500, Faisalq@CYBER.NET.PK wrote:
> Hi,
>
> Currently when we do ftp host, it asks for userid/password and then
> put/get needs to be entered.
>
> How can this be done in batch mode, so that all files to be transferred
> can be specified in one go and userid/password prompt is also not
> displayed.
>
> Thanks.
Hi !
You can use .netrc mechanism to authenticate user
and do transfer trough script, in here document
like
ftp host << EOF
comands
EOF
but I suggest to use perl and net module
you'll have full program control on transfer
it is much more flexible but not so usuall,
there are exmaples in "perl cookbook" by Oreyli
Damir
- Previous message: C. Antone: "Corey Antone/cantone/DFSI is out of the office."
- In reply to: Faisalq_at_CYBER.NET.PK: "Non interactive ftp"
- Next in thread: Robert Binkley: "Re: Non interactive ftp"
- Reply: Robert Binkley: "Re: Non interactive ftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|