<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Or just terminate them:<br>
<br>
for node in nodes:<br>
node.terminate()<br>
<br>
~Justin<br>
<br>
On 10/31/10 8:15 PM, Dan Tenenbaum wrote:
<blockquote
cite="mid:AANLkTi=KfL54SD_LZ7rp4cPeJR=dZwyAB1BOo_yw+oBw@mail.gmail.com"
type="cite">Sorry about all the noise, answering my own questions.
But if anyone is interested, here is the answer:
<div><br>
</div>
<div>
<div> for node in nodes:</div>
<div> if (not node.is_master()):</div>
<div> node.ssh.execute("halt")</div>
<div> master.ssh.execute("halt")</div>
<div><br>
</div>
<br>
<div class="gmail_quote">On Sun, Oct 31, 2010 at 10:15 AM, Dan
Tenenbaum <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:dtenenba@fhcrc.org">dtenenba@fhcrc.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div>
<div class="h5">Subject line says it all....
<div><br>
</div>
<div>Dan</div>
<div><br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
StarCluster mailing list<br>
<a moz-do-not-send="true" href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
<a moz-do-not-send="true"
href="http://mailman.mit.edu/mailman/listinfo/starcluster"
target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>