hi,

is there a way to jump through ganglia and plant jobs? so the situation is: i have this cluster which consists of 5 nodes(ganglia). the cluster has Rocks OS installed on it. so what i would like to do now is to somehow execute a job on each and every node of the cluster, and i would like to make the whole process totally automatic, so i do not have to ssh through nodes and manually start the jobs on every node. my idea was to retrieve the names of all the nodes, and then through system function jump to that node and start the job on it. but this is not working

chomp(my $host = qx(hostname -s)); foreach (@$ganglia_name){ system("ssh $_") unless ($_ eq $host); # run the job }
the result i get is: logging the the node and exiting the program
Last login: Sat Jul 25 15:59:41 2009 from fish.local Rocks Compute Node Rocks 5.1 (V.I) Profile built 13:38 22-Jul-2009 Kickstarted 15:54 22-Jul-2009 [baxy@compute-0-3 ~]$
does anyone has any suggestion on how to do this

thank you


In reply to switch through ganglia with perl by baxy77bax

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.