<div dir="ltr"><div>Fellow Pluggers,</div><div><br></div>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<div><br></div><div><br clear="all"><div><br></div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">#!/bin/bash
</span><br>
<br>for server in $(cat serverlist.txt); do
<br> ssh $server.localdomain 'yum update -y && poweroff'</span></div><div><span style="font-family:monospace">done</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">Also note that the serverlist.txt does not contain the host itself. Thanks for the help.</span></div><div><span style="font-family:monospace"><br></span></div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Nadim Hoque<br><br></div></div></div></div>
</div></div>