How do I unzip a .zip file in a remote directory using NAnt ftp task? - nant

I have a zip file in my ftp server. Is there any way to unzip it using NAnt?
Here is a sample code of what I would like to do:
<ftp connection="liveAuditToolConnection" remotedir="/remotedir">
<unzip zipfile="backup.zip"/>
</ftp>
Suppose that the backup.zip file already exists in the ftp server.
thanx:)

NAnt does not support remote operations. If you are running on a Windows system, trying looking at PSExec

Related

Unzip and access folder with powershell

I have a powershell script the downloads a zip file with a folder with files within it to the %TEMP% folder and I'm trying to understand how it can be unziped and acessed an exe file within it?
I have made searches both here and on google but I didn't found anything and have no clue how can that be done or evn where to start.
Try Extract-ZipFile cmdlet. Then access the exe where you have extracted the zip file.
Try expand-archive to unzip files. Power shell v5 has it

How to download files from s3 latest files to local folder using powerShell script and need to include file corruption check point

I need to download latest files from AWS S3 bucket using powershell script and as well as how can tackle file corruption while downloading.

Distributing powershell scripts with dll

I have a powershell script that references dll files and i would like to distribute this script to customers. How can i do this such that the customers don't have to worry installing/referencing correct dll files?
I reference the dll files from within the script in the following way:
Add-Type -Path <local path to dll>
I am looking for a way to either bundle these dll's along with the script , or some way for powershell to install the dll when it runs. The dll's i am interested in are available as following nuget packages:
Sharepoint Client
Active Directory library
You could try copying the dll files to the directory the script is in and then use "$PSScriptRoot\Name.Of.File.dll". Zip the directory and distribute the Zip file.

start/stop .sh file for .jar file

I have a file JTS3ServerMod.jar that i want to be able to start and stop via ssh (centos) so the command would basically be ./JTS3ServerMod.jar {start|stop|restart}
how would i do this? I tried to look at how the teamspeak startscript work but was not able to convert that from starting a binary to a .jar file.

Copy Directories Recursively From Ftp Server Using Perl

I need to write a perl script which has to log in to an FTP server and download all the sub-directories and contents on sub-directories to local machine. The version of Perl on the FTP server is 5.8.8, i can't upgrade it. One method is to create directories on local machine and then copy each file. I was wondering if there is any command to copy a directory and its content. Is it possible to "tar" the directory to save space?
Thanks,
Amit.
There is Net::FTP::Recursive. I haven't tried it but it seems to fit your requirements.