Hi Monks,

I have a trigger that calls a perl script. The actions in the perl script activate the trigger again which in turns calls again the same perl script. This is done in a cascading way until the upper layer is reached.

triggerA: upper?no -> merge.pl -> commits -> triggerA : upper?no -> merge.pl -> commits -> triggerA upper?y -> end.

The process works as I see the commits in the upper branches, however the messages to the users console are lost except for the very first one in the series, which chronologically is the last one to be printed out.

I tried to put a sleep right after each call thinking that this might allow the messages to be printed before it returns to the calling parent, however does not work.

On the other hand when I turn on debug, which just causes a bunch of messages to be printed, all the messages are out even the ones I was missing before.

From the trigger which is also perl I use the following to call the merge.pl:

  system("/home/jessi/bin/merge.pl");

Any ideas what could be the problem... and how to fix it.

Thanks,
Jes

In reply to Print messages not showing by jessarah

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.