Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"Your attitude determines your attitude." -- Zig Ziglar, self-improvement doofus


devel / comp.unix.shell / Re: ssh in a loop

SubjectAuthor
o ssh in a loopEsau Laguna

1
Re: ssh in a loop

<89823d9d-c4bf-405a-a6ff-59565598f37dn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=6736&group=comp.unix.shell#6736

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:6214:dc3:b0:4af:a98c:b0fa with SMTP id 3-20020a0562140dc300b004afa98cb0famr12125491qvt.99.1665338566958;
Sun, 09 Oct 2022 11:02:46 -0700 (PDT)
X-Received: by 2002:a05:6870:14c4:b0:132:c614:b0e3 with SMTP id
l4-20020a05687014c400b00132c614b0e3mr13000871oab.204.1665338566676; Sun, 09
Oct 2022 11:02:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sun, 9 Oct 2022 11:02:46 -0700 (PDT)
In-Reply-To: <1d16d00e-ac23-4b9e-9dab-b419558bd4d8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb90:f22b:418f:ac39:bc51:9aae:f468;
posting-account=kxxyTAoAAADn-zkp7LdlNyfTLIVIC0Zq
NNTP-Posting-Host: 2607:fb90:f22b:418f:ac39:bc51:9aae:f468
References: <4IOdnQy7DN-1lASiRVn-sg@speakeasy.net> <1Pbmb.70116$832.40470@twister.rdc-kc.rr.com>
<WrydnScJq8tE6wSiRVn-gg@speakeasy.net> <1d16d00e-ac23-4b9e-9dab-b419558bd4d8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <89823d9d-c4bf-405a-a6ff-59565598f37dn@googlegroups.com>
Subject: Re: ssh in a loop
From: esaulaguna12@gmail.com (Esau Laguna)
Injection-Date: Sun, 09 Oct 2022 18:02:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5157
 by: Esau Laguna - Sun, 9 Oct 2022 18:02 UTC

El jueves, 19 de noviembre de 2020 a la(s) 05:59:32 UTC-6, JasonJames HisWife escribió:
> On Friday, October 24, 2003 at 12:00:14 PM UTC-7, Adam Selene wrote:
> > "Dan Mercer" <dme...@mn.rr.com> wrote in message
> > news:1Pbmb.70116$832....@twister.rdc-kc.rr.com...
> > >
> > > "Adam Selene" <NOS...@NOSPAM.COM> wrote in message
> > news:4IOdnQy7DN-...@speakeasy.net...
> > > : Hello,
> > > :
> > > : I am trying to write a script that will collect output from a list of
> > > : machines on my network. To accomplish this I have setup ssh keys and
> > have
> > > : written a simple loop. The only problem is my script does not go
> > through
> > > : the entire iteration of all the machines, just the first one it grabs
> > during
> > > : read. Here is my code:
> > > :
> > > : #!/usr/local/bin/bash
> > > :
> > > : cat machines.list |while read line ;
> > > Useless Use of cat followed by a useless semi-colon
> > > : do
> > > : ssh -t myuserid@$line $1 >> /home/myuserid/output.txt
> > > Stdin for the process is the pipe from cat. SSH inherits stdin and
> > > empties it. use the -n option
> > >
> > > while read line
> > > do
> > > ssh -n -t myuserid@$line $1
> > > done <machines.list >>~/output.txt
> > > clear
> > > less >>~/output.txt
> > >
> > > Or you could pipe the results directly to less:
> > > while read line
> > > do
> > > ssh -n -t myuserid@$line $1
> > > done <machines.list |less
> > >
> > > Dan Mercer's the other one of the street to do it again soon and I will be in your area tomorrow morning 🌅🌄 the office and they told her that this stuff is in manual testing profile picture is of experience with the link 🔗 firebase and I hope to hear from you soon thank 📱❤️ jjnkjdrea...@jnk.org.in ❤️ KJ ❤️ KJ ❤️ JJ ❤️ Kylie Jenner Jason James ❤️ Kylie Jenner Jason James ❤️ Kylie Jenner Jason James ❤️ Kylie Jenner Jason James ❤️ Kylie Jenner Jason James and His Lawyer's office today so much for all the information ℹ️ ℹ️ the hospital 🏥❤️ Kylie Jenner Jason James ❤️ Kylie Jenner Jason James ❤️ Kylie and I can 🥫🥫 you can get it Again 😁 and again I apologise and again thank you so very happy with the link 🔗 firebase I can 🥫 and called the mechanic 🧰 the hospital 🏥❤️ JJ ❤️ Kylie Jenner Jason James ❤️ Keep Updated resume enclosed the details of experience in manual testing resume enclosed my CV attached herewith is called me enough names of the street to get anything done ✅
> > >
> > > : done
> > > : clear
> > > : less /home/myuserid/output.txt
> > > :
> > > : The contents of machines.list is:
> > > :
> > > : proxy-01.mydomain.com
> > > : proxy-02.mydomain.com
> > > : proxy-03.mydomain.com
> > > : proxy-04.mydomain.com
> > > : proxy-05.mydomain.com
> > > :
> > > : When I run the script it grabs the output from the first machine in the
> > list
> > > : but goes no further. What am I doing wrong here?
> > > :
> > > :
> > > : Thanks in advance,
> > > :
> > > : Adam
> > > :
> > > :
> > >
> > >
> > Thank you! The -n is just what I needed.
> >
> > Thanks again,
> > Adam
https://groups.google.com/g/comp.unix.shell/c/POLBma_q7FI/m/ez_CzcDFBAAJ

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor