Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ftp and unzipping

Status
Not open for further replies.

John1111

Programmer
Oct 26, 2002
1
US
is it possible to call an unzip action as part of an ftp script
ie ftp 3453454.657.3434
put example.zip
unzip example.zip

ie remotely unzipping a file you just placed there.

thx
 
Maybe yes - there's an option to run (execute) a remote program, but this is usually turned off as it's something of a security risk. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
You cannot run unzip within ftp itself, see below for valid ftp commands: -
ftp
ftp> help
! cr macdef proxy send
$ delete mdelete sendport status
account debug mdir put struct
append dir mget pwd sunique
ascii disconnect mkdir quit tenex
bell form mls quote trace
binary get mode recv type
bye glob mput remotehelp user
case hash nmap rename verbose
cd help ntrans reset ?
cdup lcd open rmdir
close ls prompt runique
 
Ur safest bet is to use the remote execution coomand 'resh' on most UNIXes
$ resh remote_Mc_name unzip filename.zip
As mike said resh is mostly deactivated,but normally when U have a small network with users having accounts on all the machines U normally keep resh activated.
Other uses of resh are ...if U want to run a script on all the machines of the network ..U can first transfer the script to the remote machine using resh and then execute it remotely using resh.All the output of the execution will be displayed on ur screen.



amit
crazy_indian@mailcity.com

to bug is human to debug devine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top