Microsoft
Software
Hardware
Network
Question : How do I perform this shell command in reverse?
Hi,
I found the following command which logs into a remote server, zips a file and sends it straight over the network and unzips it on the remote machine in one action, which saves I/O on both machines:
serverA $ gzip -c /file/being/zipped | ssh root@serverB "gunzip -c - > /file/unzipped"
How would I perform this command in reverse? In other words, login in to a remote server, get the remote server to zip and send the file, and then unzip it as it arrives on the local machine?
Thanks
Answer : How do I perform this shell command in reverse?
ssh root@serverB "gzip -c /file/being/zipped " | gunzip -c - > /file/unzipped
Random Solutions
Why does my email show
[email protected]
<wbr />k instead of my name@ from a form mail script?
how to get datetime format yyyy-mm-dd hh:mi:ss.mmm in EXcel cells while copying from management studio result set?
How can I use a DROP DOWN LIST in Excel
does xp media center have a msconfig utility
Exchange 2003 will not send/receive
Reassign or disable "Windows" Key on a laptop keyboard.
DNS issues on Mac Server
Sybase max table and column name length
Are there any viruses for compress files zip, rar, 7zip, is there a way to prevent them?
IIS Virtual SMTP server not sending. Mail stuck in mailroot\queue folder.