Operating System - HP-UX
1823369 Members
2744 Online
109654 Solutions
New Discussion юеВ

Gunzip files on SFTP prompt?

 
Sachin_29
Advisor

Gunzip files on SFTP prompt?

I guess I am asking a dumb question..
IS it possible to gunzip ( or any unzip) files on SFTP prompt?
I have only ftp access to a server X and I am "put"ing a file on X using SFTP thru script . I have to unzip it on X?
IS it possible
I guess its not possible..
Please let me know
Any help appreciated
Sachin
3 REPLIES 3
Fadia Almarei
Super Advisor

Re: Gunzip files on SFTP prompt?

if you put the file on the x server , then try to go to where you put the file and unzip the file , why it is not possible, try it
fadia.marei
Sachin_29
Advisor

Re: Gunzip files on SFTP prompt?

AS I said , I have only sftp privileges
I get the prompt
sftp>
I have a very limited access on the server
Currently I have a script to tar it and have to depend on some people to run the untar script on Server X.
I have to script it end -to end
Any ideas
Thanksm

Muthukumar_5
Honored Contributor

Re: Gunzip files on SFTP prompt?

Hai sachin,

We can execute the shell commands on sftp command prompt. Or you can go to the shell and do the operation, after it's completion, quit will make you to come sftp prompt.

If you are having a script to do it, then it is very to do it,

example>

sftp root@test
sftp> !hostname
test
or
sftp> !
# hosrname
test
# exit or ctr+d
sftp>

For ur requirement,
sftp>! ksh scriptname.ksh
like that.. or
sftp> !
# execute it..
# exit ( to sftp )

That is all.
Easy to suggest when don't know about the problem!