LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2009, 07:39 AM   #1
getrue
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
i want to gzip remotemachine with ssh.


Hello,

i can ssh remote-machine without password.

And now i want to use gzip command for this path on remote-machine /bcksrv/ws02/ws02opt.tar

What would i do for this operation.

ssh root@remotemachine ????????????????

Thanks in advance,

King regards
 
Old 12-09-2009, 08:16 AM   #2
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
Quote:
Originally Posted by getrue View Post
Hello,

i can ssh remote-machine without password.

And now i want to use gzip command for this path on remote-machine /bcksrv/ws02/ws02opt.tar

What would i do for this operation.

ssh root@remotemachine ????????????????

Thanks in advance,

King regards
If you just want to gzip the file on the remote machine, just run

Code:
ssh root@remotemachine gzip /bksrv/ws02/ws02opt.tar
If you want the gzipped file on your local machine, I think you should be able to do this:

Code:
ssh root@remotemachine gzip -c /bksrv/ws02/ws02opt.tar >  ws02opt.tar.gz
explanation: gzip -c sends the compressed file to stdout, stdout is being sent by ssh to your local machine, and you are re-directing this to a file.
 
1 members found this post helpful.
Old 12-10-2009, 07:57 AM   #3
getrue
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hello bartonski,

Thanks for your kindly help.

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open gzip file? I have gzip installed mhg Linux - Newbie 3 10-24-2008 02:18 AM
gzip help mahmoud Linux - Newbie 7 05-16-2008 07:53 AM
[gzip] appears in process table after gzip command completes redmanDBA Linux - General 0 02-26-2008 06:12 AM
apt-get update error: "gzip: stdin: not in gzip format" haertig Debian 0 08-02-2006 05:21 PM
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration