good evening ladies and gentlemen, i've been kind of troubled in using perl in win32. i like it, i reallly do, but sometimes, when testing some scripts i have problems with perl never dying. i can sometimes have up to 10 instances of it just hanging out in the task manager. further, the Administrator account can't seem to kill them.

I figured out how to kill the processes off, using MS's reskit utilities TLIST and KILL. TLIST functions like the taskmanager or the ps command on *nix platforms. Kill acts the same as 'End Process' in the taskmanager and is similar to the kill command on *nix platforms. These programs are mighty handy, you can kill any system process that's running (as a side note, if you kill one of the processes you will lose the ability to log off/shutdown/reset). Both are available here: ftp://ftp.microsoft.com/services/technet/samples/ps/win98/reskit/diagnose/

I commonly run into this problem, when experimenting in writing web applications, I'll run the script through my browser on my localhost; I'll either have an accidental infinite loop or I'll just stop the session early; this causes the perl process to keep running, though the browser has stopped loading. My question is how do I make my win32 box run more like unix, where the processes just die off by themselves?


--
paul

In reply to never dying perl processes win32 by vbrtrmn

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.