First off, from what I can tell, your first program doesn't have any output. (Hard to tell without code tags.)

Second, even any output it did have should be captured by the back-ticks. Thus, you wouldn't "see" the output - it would be stored in $results. Which is probably what you want, but I can't quite be sure. Ideally, you'd explain what you expect from this, and then we could talk about why it isn't doing what you expect, and what it would take to get where you want to go. (Computers are funny - they do exactly what you tell them, even if that's not what you meant ;->)

Third, and this is pretty minor, your perl is probably not called "usr/bin/Perl" - it's probably "/usr/bin/perl" (note the leading slash, and lower-case perl).

Finally, my last minor nit, and here we're scraping the barrel: stime.pl should have the hash-bang line in it, or you should use $^X to call perl for stime.pl. The former allows stime.pl to control which interpreter to use (I have two different perls on my system), the latter allows your controller's hash-bang line to control the interpreter. The current code puts the onus on the backtick line to figure out the perl, which makes it harder to change later, and you may be surprised what you get. The stime.pl may expect one thing, and controller.pl or whatever may expect something else, and they may both be wrong... (I would go for a hash-bang line in stime.pl and get rid of the "perl" in the $results line.)


In reply to Re: Calling many perl scripts from one master perl script by Tanktalus
in thread Calling many perl scripts from one master perl script by Nesh

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.