in reply to Re^3: perl function for 'ps' ?
in thread perl function for 'ps' ?

Thanks for your suggestion.

I tried perl Makefile.PL PREFIX=/home/u752359/ProcessTable and that installed fine.

However my script fails. Here's the start of it:

#!/usr/bin/perl -w use lib '/home/u752359/ProcessTable'; use Proc::ProcessTable; $t = new Proc::ProcessTable;

And when I run it:

$ ./test.pl

Can't locate Proc/ProcessTable.pm in @INC (@INC contains: /home/u752359/ProcessTable /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at ./test.pl line 5. BEGIN failed--compilation aborted at ./test.pl line 5.

Replies are listed 'Best First'.
Re^5: perl function for 'ps' ?
by gellyfish (Monsignor) on Aug 14, 2006 at 12:34 UTC

    You will probably find that you want something like use lib '/home/u752359/ProcessTable/lib/perl5'; but you should check the directory structure that was created and set 'lib' to the directory containing the 'Proc' subdirectory.

    /J\