How to delete & deploy EAR archives in WinSCP?

1

1

I have a folder called XYZ.ear (folder icon) deployed in the server through WinScp.
I want to delete this and also deploy a new ear file instead of the above folder.

Is there any specific command that I use in the putty or should I just drag 'n' drop?
By dragging 'n' dropping will the ear change into a folder str automatically?

Freakyuser

Posted 2014-01-15T05:11:02.787

Reputation: 213

Any answers fellows? I am quite held up with this. – Freakyuser – 2014-01-15T06:44:03.503

1Do you want to automate this task or are you looking for manual solution using GUI? – Martin Prikryl – 2014-01-15T08:21:15.167

Looking for manual solution only. Thank you for the response – Freakyuser – 2014-01-15T09:02:48.447

Answers

1

The EAR file won't extract automatically when transferred (dropped on remote panel of WinSCP).

You need to either:

  • Extract it locally and then upload whole directory structure;
  • Or upload the EAR archive and extract it in the remote directory. Note that the .ear file is actually a ZIP archive. So you can extract it with the unzip. You can remotely execute the unzip command from WinSCP directly. If you are going to do this often, you can setup a custom command unzip "!". Of course, you can also type the unzip command in PuTTY console.

Martin Prikryl

Posted 2014-01-15T05:11:02.787

Reputation: 13 764