I thought of that, but since my task was already _starting_ from a cronjob, having it set up an at job to kill itself later looked even wierder to me than this Until module does :)

You're right, though, it's another way to do it.

(Edit: Aha, NOW I remember why I did this! If you set up an at job to kill process nnnnn, there's no guarantee your script won't die for some other reason before the at job runs, so that pid might be reused, which means you might kill the wrong thing, if the pid belongs to you or you're root. This way, process nnnn is a child of Until, so it WILL still be around, even if its defunct.... I don't have the root issue, my script runs as a normal user.)
--
Mike


In reply to Re: Re**4: Until... by RMGir
in thread Until... by RMGir

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.