remote ssh commands

Nadim Hoque nadimhoque at gmail.com
Tue May 31 21:34:04 MST 2016


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 <sean.a.ritzler at gmail.com> wrote:

> 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" <nadimhoque at gmail.com> 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 as yum
>> just fine but when I try to execute the poweroff command the host turns off
>> as well. Below is the script that I am running
>>
>>
>>
>> #!/bin/bash
>>
>> for server in $(cat serverlist.txt); do
>>        ssh $server.localdomain 'yum update -y && poweroff'
>> done
>>
>> Also note that the serverlist.txt does not contain the host itself.
>> Thanks for the help.
>>
>> Nadim Hoque
>>
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>



-- 
Nadim Hoque
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20160531/14d686a1/attachment.html>


More information about the PLUG-discuss mailing list