Am 31. May, 2016 schwätzte Nadim Hoque so:
moin moin Nadim,
as Brian mentioned it sounds like ou might have a blank line in the file.
ssh ${server:-pleasedonotusethisasahostname}.localdomain 'yum update -y &&
poweroff'
Or just verify that you have a valid value before using it :).
ciao,
der.
Sean,
Well when I just run the 'yum update -y' it runs it just fine but the &&
poweroff runs on the local machine. Also I have another script that does
the following:
#!/bin/bash
for server in $(cat serverlist.txt); do
ssh $server.localdomain 'poweroff'
done
and also running that just p
You probably have a blank line in your serverlist.txt, resulting in
$server being null:
ping .localdomain
PING .localdomain(localhost (::1%1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.017 ms
64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.022 ms
On Tue, May
Could a bad dns record or host entry point one of the lines in the file
back to itself?
Is the yum update also being run on the host? Try a different command in
the loop, e.g. 'echo $server > /tmp/test' should be a good troubleshooting
start.
On May 31, 2016 9:34 PM, "Nadim Hoque" wrote:
> Its a
Its a virtual to virtual setup. All the guests are on the bridge connection
that I have made so that they are on the same network. To answer your
question I am not touching the VM host at all.
On Tue, May 31, 2016 at 9:27 PM, sean wrote:
> Are you running this on a virtual machine? If so, are yo
Are you running this on a virtual machine? If so, are you powering off its
host machine?
On May 31, 2016 9:22 PM, "Nadim Hoque" wrote:
> Fellow Pluggers,
>
> So I am trying to perform a remote poweroff command and for some reason
> the host powers itself off. I am able to run another command such