Sponsored Content
Top Forums Shell Programming and Scripting awk remote multiple hosts print remote hostname and output Post 303039177 by charli1 on Wednesday 25th of September 2019 04:30:25 AM
Old 09-25-2019
Quote:
Originally Posted by RudiC
What is the -C option meant for?
Hi RudiC,
the -C as per ssh manual stands for
Code:
     -C      Requests compression of all data (including stdin, stdout, stderr, and data for forwarded X11, TCP and UNIX-domain connections).  The compression algorithm is the
             same used by gzip(1), and the “level”¯ can be controlled by the CompressionLevel option for protocol version 1.  Compression is desirable on modem lines and other
             slow connections, but will only slow down things on fast networks.  The default value can be set on a host-by-host basis in the configuration files; see the
             Compression option.

The suggested command is printing tha same output as the per my request without tabing the hostname, any idea buddy?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

ftp into remote hosts

Hi all, Have used ftp to transfer files from remote host to localhost. I was wondering how can I ftp into remote hosts. for example from a unix box, connect to an external server and then ftp that file into mainframe ? I would like to avoid pulling it to unix box and then ftping to mainframe.... (1 Reply)
Discussion started by: kodermanna
1 Replies

2. UNIX for Dummies Questions & Answers

How to Know is a Remote hosts have open port

Hi gurus of unix!!!!, I have a little question. I nedd your helps The scenarios is the following I have tree equipment that are installed in different places. I use a carrier to interconnect the equipment. Some Port's (TCP) need to be open for an application that must be function correctly. For... (3 Replies)
Discussion started by: andresguillen
3 Replies

3. Debian

Launch remote gui apps in remote hosts

Hi, I've been looking for a way to execute a console program (is in windows but by now I accept the linux way) from a linux machine, but this program has to be opened in the remote side. Linux machine acts only as a "signaling" host. My program has to open the camera in the remote side, but only... (7 Replies)
Discussion started by: zauberberg
7 Replies

4. UNIX for Advanced & Expert Users

remote hosts and wide output?

Hello forum: I am curious about some output that I get using an alias <command> on a remote host and I wondered if someone could point me in the right direction. Symptoms: Using "ssh -qi /path/to/key root@som.ipa.ddr.ess mail" (or variation of via alias) only gives a partial textual... (7 Replies)
Discussion started by: Habitual
7 Replies

5. Shell Programming and Scripting

Running a script on multiple remote hosts at once

I have a script on about 15 hosts that I need to run for each host whenever I want (not crontab). Problem is, this script takes 5-10 mins to run for each host. Is there a way I can run the script in parallel for all the hosts instead of 1 at a time? Also, I'm remotely running the script on the... (3 Replies)
Discussion started by: mrskittles99
3 Replies

6. Shell Programming and Scripting

Making output of data from remote hosts smaller

so i'm doing something similar to this: ssh myname@remotehost 'tail -800 /var/log/some.log' Now, as you can see, this is a lot of data to be passing back and forth over a network. Is there anything i can do to make the output smaller (zip it on the fly, compress?) and then when the data... (4 Replies)
Discussion started by: SkySmart
4 Replies

7. Shell Programming and Scripting

Ssh to multiple hosts and then run multiple for loops under remote session

Hello, I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out. I am specifically facing issues while running for loops. I have to run multiple for loops in else condition. but the below code is giving errors in for... (2 Replies)
Discussion started by: mohit_vardhani
2 Replies

8. Shell Programming and Scripting

Ssh to validate multiple remote hosts connection validation.

Dear Folks, I am trying to read a config file contains ip and port numbers. i want to read each line of the config file and check ssh connection is happening or not. Kindly guide. Config file: abc@1.2.342 22 abc@1.2.343 22 abc@1.2.344 22 abc@1.2.345 22... (9 Replies)
Discussion started by: sadique.manzar
9 Replies

9. Solaris

How to copy a tar file on a series of remote hosts and untar it on those hosts?

Am trying to copy a tar file onto a series of remote hosts and untar it at the destination. Need to do this without having to do multiple ssh. Actions to perform within a single ssh session via shell script - copy a file - untar at destination (remote host) OS : Linux RHEL6 (3 Replies)
Discussion started by: sankasu
3 Replies

10. Shell Programming and Scripting

Grep remote multiple hosts output to local server

Hello all, i'm trying to create a report by greping a pattern on multiple remote hosts and creta a simple report, actually i did this, is ther any better way to do this. #!/bin/bash for host in `cat RemoteHosts` do ssh $host -C 'hostname 2>&1; grep ERROR /var/log/WebServer.log.2019-09-21... (0 Replies)
Discussion started by: charli1
0 Replies
AdvanceCOMP ZIP Compression Utility(1)			      General Commands Manual			    AdvanceCOMP ZIP Compression Utility(1)

NAME
advzip - AdvanceCOMP ZIP Compression Utility SYNOPSIS
advzip [-a, --add] [-x, --extract] [-l, --list] [-z, --recompress] [-t, --test] [-0, --shrink-store] [-1, --shrink-fast] [-2, --shrink-normal] [-3, --shrink-extra] [-4, --shrink-insane] [-N, --not-zip] [-p, --pedantic] [-q, --quiet] [-h, --help] [-V, --version] ARCHIVES... [FILES...] DESCRIPTION
The main purpose of this utility is to recompress and test the zip archives to get the smallest possible size. For recompression the 7-Zip (www.7-zip.com) Deflate implementation is used. This implementation generally gives 5-10% more compression than the zLib Deflate implementation. For experimental purpose also the 7-Zip LZMA algorithm is available with the -N option. In this case, the generated zips WILL NOT BE USABLE by any other program. To make them usable you need to recompress them without the -N option. Generally this algorithm gives 10-20% more compression than the 7-Zip Deflate implementation. OPTIONS
-a, --add ARCHIVE FILES... Create the specified archive with the specified files. You must specify only one archive. -x, --extract ARCHIVE Extract all the files on the specified archive. You must specify only one archive. -l, --list ARCHIVES... List the content of the specified archives. -z, --recompress ARCHIVES... Recompress the specified archives. If the -1, -2, -3 options are specified, it's used the smallest file choice from: the previous compressed data, the new compression and the uncompressed format. If the -0 option is specified the archive is always rewritten without any compression. -t, --test ARCHIVES... Test the specified archives. The tests may be extended with the -p option. -N, --not-zip Use the LZMA algorithm when compressing. The generated zips will not be readable by any other application! -p, --pedantic Be pedantic on the zip tests. If this flag is enabled some more extensive tests on the zip integrity are done. These tests are gen- erally not done by other zip utilities. -0, --shrink-store Disable the compression. The file is only stored and not compressed. This option is very useful to expand the archives of .png and .mp3 files. These files are already compressed, trying to compress them another time is really a waste of time and resource. -1, --shrink-fast Set the compression level to "fast". -2, --shrink-normal Set the compression level to "normal". This is the default level of compression. -3, --shrink-extra Set the compression level to "extra". -4, --shrink-insane Set the compression level to "insane". COPYRIGHT
This file is Copyright (C) 2002 Andrea Mazzoleni, Filipe Estima SEE ALSO
advpng(1), advmng(1), advdef(1) AdvanceCOMP ZIP Compression Utility(1)
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy