in reply to Re^14: Monitor list of threads running
in thread Monitor list of threads running

Again, going back to where we already were, you can use the following snippet:

perl -Mthreads -e 'use lib "/ssy/nos/thread_libs/lib/";die $threads::V +ERSION'

... or you can output the version information from your script:

use threads; print "Using threads.pm version $threads::VERSION\n";

Replies are listed 'Best First'.
Re^16: Monitor list of threads running
by mr_p (Scribe) on Apr 09, 2010 at 16:13 UTC

    I am still getting version 1.07 for threads.pm

    Here is what I did to install latest threads.

    1. downloaded threads-1.77.tar.gz 2. untared into /ssy/nos/threads_lib 3. cd /ssy/nos/threads_lib/threads-177 4. perl Makefile.PL PREFIX=/ssy/nos/threads_libs/lib 5. make 6. make test 7. make install 8. perl -Mthreads -e 'use lib "/ssy/nos/thread_libs/lib/";die $threads +::VERSION' I get: 1.07 at -e line 1.

    I also checked that threads.pm exist at location:

    /ssy/nos/thread_libs/lib/lib64/perl5/5.8.8/x86_64-linux-thread-multi/

Re^16: Monitor list of threads running
by mr_p (Scribe) on Apr 09, 2010 at 17:06 UTC
    OK I finally got it working.

    gambit$ perl -Mthreads -e 'use lib "/ssy/nos/thread_libs/lib/lib64/per +l5/5.8.8/x86_64-linux-thread-multi/";die $threads::VERSION' I got 1.07 at -e line 1

    But If I run this. I get correct message

    #!/usr/bin/perl use lib "/ssy/nos/thread_libs/lib/lib64/perl5/5.8.8/x86_64-linux-threa +d-multi/"; use threads; print "Using threads.pm version $threads::VERSION\n"; Output: Using threads.pm version 1.77

    oh and also If I include path up to /ssy/nos/thread_libs/lib/lib64/ in perl script I get 1.07.

    Never the less I got it with you help. thanks so much again.

      Had you done:

      perl -Mlib=/ssy/nos/thread_libs/lib/lib64/perl5/5.8.8/x86_64-linux-thr +ead-multi/ -Mthreads -e 'die $threads::VERSION'

      The lib path would have been added to before the thread module was loaded, and it would work.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Thant worked. Thanks.

        On another note: I will have lots of threads downloading files using Net::FTP, I have noted the each threads uses 10MB size, Can you tell If I even need 10MB per stack size per thread if all I'm doing is downloading files. Max file size will be 1MB.