constant STILL_ALIVE

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default constant STILL_ALIVE

    I intend to use Win32::getExitCode to check if a process is alive. The
    5.8 doc says the STILL_ALIVE constant need to be explicitly exported,
    but my Process.pm file in site/lib/Win32 has not shown such constant.
    Does anyone know how to use that constant?
    Thanks!

    evesun@gmail.com Guest

  2. Similar Questions and Discussions

    1. Constant Freezing
      Well, I've had this problem before. No, it does not crash when it's loading. It doesn't crash when loading fonts or anything like that. Before I had...
    2. unexpected constant #293 65
      I've wasted a full days trying to install CF 7 on my local machine. I kept getting the message saying that location was full and I need to select a...
    3. undefined constant
      Ok, echo "value is ".$_POST; values is Notice: Use of undefined constant merkid - assumed 'merkid' in .... echo "value is ".$_POST; value is...
    4. function name in a constant
      Hi all! $func = "echo"; $func("xyz"); This works fine, we all know. but is there a possibility to get something like that working? define...
    5. The constant FALSE
      Or is it a constant at all? "James Jiao" <jamesjiao@paradise.net.nz> wrote in message news:CZw3b.109$4a.20772@news02.tsnz.net... 0
  3. #2

    Default Re: constant STILL_ALIVE

    [email]evesun@gmail.com[/email] wrote:
    > I intend to use Win32::getExitCode to check if a process is alive. The
    > 5.8 doc says the STILL_ALIVE constant need to be explicitly exported,
    > but my Process.pm file in site/lib/Win32 has not shown such constant.
    > Does anyone know how to use that constant?
    > Thanks!
    use Win32::getExitCode 'STILL_ALIVE';

    maybe?

    --
    John Bokma Freelance software developer
    &
    Experienced Perl programmer: [url]http://castleamber.com/[/url]
    John Bokma Guest

  4. #3

    Default Re: constant STILL_ALIVE


    <evesun@gmail.com> wrote in message
    news:1149620967.579144.193180@i40g2000cwc.googlegr oups.com...
    > I intend to use Win32::getExitCode to check if a process is alive. The
    > 5.8 doc says the STILL_ALIVE constant need to be explicitly exported,
    > but my Process.pm file in site/lib/Win32 has not shown such constant.
    > Does anyone know how to use that constant?
    > Thanks!
    >
    E:\pscrpt>type try.pl

    use warnings;
    use Win32::Process (STILL_ACTIVE);
    print STILL_ACTIVE, "\n";

    E:\pscrpt>perl try.pl
    259

    E:\pscrpt>

    It's a windows constant that gets picked up by the "compiled" part of
    Win32::Process (ie the XS code) rather than by the perl code that you find
    in Process.pm.

    You need version 0.10 (or later) of Win32::Process to use it:

    perl -MWin32::Process -e "print $Win32::Process::VERSION"

    libwin32-0.26 contains Win32::Process-0.10. I think earlier libwin32
    versions (0.24, certainly) contain Win32::Process-0.09.

    The above script simply demonstrates that the constant exists and that it
    has a numeric value of 259 (for me, at least).

    Cheers,
    Rob


    Sisyphus Guest

  5. #4

    Default Re: constant STILL_ALIVE

    Thanks Rob!

    I checked my version is 0.09, that is why I could not get it.

    Thanks!

    Eve

    evesun@gmail.com Guest

  6. #5

    Default Re: constant STILL_ALIVE

    Thanks Rob!

    I checked my version is 0.09, that is why I could not get it.

    Thanks!

    Eve

    evesun@gmail.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139