Thanks guys, this is much more help than I expected to get over the weekend. You have NO idea how glad I am to learn about the WM_DELETE_WINDOW protocol...

As for the child exit, these are all really great examples. I was so focused on the likelihood of this requiring a complex solution that it didn't occur to me to manually define an exit code for the cases I care about within the second script and test after the system() call returns. That seems to be working just fine. Sometimes it's too easy to overlook the fundamentals - thanks for the reminder, blazar!

Rob - to answer your questions from your first post, the child does not need to provide any information back to the parent other than the exit code. Also, the intended behavior is for the parent to wait for the child to exit before doing anything else. So I *think* in this case system() will be sufficient. But least now I have some excellent examples to go on for the more complex cases.

Thanks again, everyone -
Mark


In reply to Re: Handling child process and close window exits in Perl/Tk by meliason
in thread Handling child process and close window exits in Perl/Tk by meliason

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.