<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I've got 4 Raspberry Pi's running headless and I'm using a Linux
Mint machine as my control station. I'm getting the hang of Bash
scripts, though what runs where is still confusing. Late last
night I decided to shut down everything, so of course decided to
write a script to go through each Pi and shut it down. <br>
</p>
<p>a line of the code <br>
</p>
<p>ssh <a class="moz-txt-link-abbreviated" href="mailto:pi@pi2.host">pi@pi2.host</a> shutdown -h now</p>
<p>this of course should have been <br>
</p>
<p>ssh <a class="moz-txt-link-abbreviated" href="mailto:pi@pi2.local">pi@pi2.local</a> shutdown -h now</p>
<p>When I ran the first one it seemed to do nothing. I had shared a
key with all my Pi so as to not have to use a password. I exited
and ran it again waiting a bit longer. I got a not invalid key
error and an IP4 address out on the real internet. I just hope I
haven't popped up on some terrorist list as trying to shutdown
some part of the grid. I wonder how often things escape onto the
net like that? <br>
</p>
<div class="moz-signature">-- <br>
<img src="cid:part1.4F9CB861.D9DE2732@comcast.net" border="0"></div>
</body>
</html>