Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to create zip on FTP server from client machine using perl

by Corion (Patriarch)
on Nov 22, 2016 at 08:38 UTC ( [id://1176315]=note: print w/replies, xml ) Need Help??


in reply to How to create zip on FTP server from client machine using perl

Does your FTP server support creating a ZIP file for you? Does this feature work with any other client you know?

If yes, look at Net::FTP and its ->cmd ->quot function to do the same from Perl.

If no, you will have to download all files yourself using Net::FTP and then use Archive::Zip to create the ZIP file on your client.

Replies are listed 'Best First'.
Re^2: How to create zip on FTP server from client machine using perl
by Mjpaddy (Acolyte) on Nov 22, 2016 at 09:43 UTC

    Does your FTP server support creating a ZIP file for you?That I want to figure out

    Does this feature work with any other client you know?Not tested with other client

    On windows server 2012 r2 i.e. FTP server configured which not have Zip as utility in cmd but I install 7z on it

    how can I use that?

      It sounds like you should research what FTP is. The ability you require does not exist in standard FTP. Perhaps you want to connect to the server via other means and create a zip file? hint.

      You will need to research what the magic command is to make your FTP server zip up files and send you a ZIP file.

      Then you can use the ->quot method to send that command to your server.

      As marto already said, this is more a question into research on FTP servers than it is a question about Perl and Perl modules.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1176315]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-26 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found