Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Perl Proc::ProcessTable distribution
C Perl XS Perl6

Merge pull request #10 from plicease/cygwin

use cygwin_conv_path in place of deprecated and removed cygwin_conv_to_p...
latest commit fc2704f089
@jwbargsten authored
Failed to load latest commit information.
Process Enable 'use warnings'
contrib make it look like 0.45 distro
git add
hints os-aix: RT #65347 - installation hangs on AIX 6
os Merge pull request #10 from plicease/cygwin
t test: skip tests if $0 cannot be changed
.gitignore jump to version 0.47
.gitrepo init
Changes Bump to v0.51 Enable 'use warnings' Enable 'use warnings'
MANIFEST dist: forgot to add gnukfreebsd hint to manifest file
MANIFEST.SKIP jump to version 0.47
Makefile.PL jump to version 0.47
PORTING make it look like 0.45 distro Enable 'use warnings'
ProcessTable.xs Fix issue with 'Modification of non-creatable hash value attempted, s…
README RT # 80391. pctcpu does not include system time.
README.aix make it look like 0.45 distro
README.bsdi make it look like 0.45 distro
README.cygwin make it look like 0.45 distro
README.darwin make it look like 0.45 distro
README.dec_osf make it look like 0.45 distro
README.freebsd-kvm FreeBSD-kvm: update of README.freebsd-kvm for new fields
README.freebsd-procfs restore README.freebsd as README.freebsd-procfs
README.hpux make it look like 0.45 distro
README.linux make it look like 0.45 distro
README.netbsd make it look like 0.45 distro
README.openbsd make it look like 0.45 distro
README.solaris make it look like 0.45 distro
README.sunos make it look like 0.45 distro
README.unixware make it look like 0.45 distro add release mod make it look like 0.45 distro add release
tidyall.ini make it look like 0.45 distro



Please use to submit bugs and patches.

This module is now being lightly "maintained" by Jonathan Swartz <>.  I
have nearly zero knowledge of the implementation within but wanted to rescue the
distribution from abandonment and try to get critical bug fixes out. This will need to be
a community effort.

The source is in github -

Commit bits will be generously granted, send me your github id.

This is BETA software; it seems to work, but use at your own risk :) 

Currently works on darwin, nonstop-ux, Cygwin on Windows, linux,
solaris, aix, hpux, freebsd, irix, dec_osf, bsdi, netbsd, unixware 7.x,
SunOS and openbsd. Please see the "README.osname" files for details on
individual os implementations. Please see the file PORTING if you are
interested in making it work on something else. Please see the file
TODO for a list of issues that need to be addressed (and send me

Please note that the Cygwin/windows port requires the Cygwin
environment to work (available from, and that the
code for the port is derived from Cygwin code and is therefore covered
by the Cygwin license (

Multithread support is now available for Solaris; please see
README.solaris for info. It may work under other OS's as well; please
let me know if it does.

Comments, bug reports, patches and especially ports are greatly
appreciated. If you want to submit a patch, *please* use standard
context-diff format; if you're submitting a port, a tarball of the new
files is great.

This module is a first crack at providing a consistent interface to
Unix (and maybe other multitasking OS's) process table information.
The impetus for this came about with my frustration at having to parse
the output of various systems' ps commands to check whether specific
processes were running on different boxes at a larged mixed Unix site.
The output format of ps was different on each OS, and sometimes
changed with each new release of an OS. Also, running a ps subprocess
from within a perl or shell script and parsing the output was not a
very efficient or aesthetic way to do things.

With this module, you can do things like this:

	# kill memory pigs 
	use Proc::ProcessTable;

	$t = new Proc::ProcessTable;
        foreach $p ( @{$t->table} ){	
	  if( $p->pctmem > 95 ){

There is another short example in the file "" in the
distribution. For a more elaborate example (in German), see
<shameless plug> If you can't read German, try my other module,
WWW::Babelfish!</shameless plug> 
There are also two contributed modules: a module called Proc::Killall
contributed by Aaron Sherman to kill all processes whose command-lines
match a given pattern, and a module called Proc::Killfam by Stephen
Lidie to kill a list of processes and their children. These modules
are installed along with Proc::ProcessTable. Pod documentation is
included in both of them.

This module needs the File::Find and Storable modules in order to
work. File::Find is generally included with perl distributions;
Storable is available from CPAN. 

After unpacking the tar file, do:

        perl Makefile.PL 
	make test
        make install

There is embedded POD documentation in and

Thanks to the many people who have sent in ports and patches. Without
them this module would be impossible to support on so many platforms.
Patches are noted in the Changes file.

David Paquet <>		AIX port
Mike Romberg <>		HPUX port
Slaven Rezic <>		FreeBSD port
W. Phillip Moore <>			IRIX port
Peter ? <>	IRIX version patch
Bernhard Schmalhofer <>	dec_osf port
Sean Eskins <>				bsdi port
Peter Reich <>				netbsd port
Aaron Sherman <>		Proc::Killall module
Steve Lidie <sol0@Lehigh.EDU> module
Martin Lucina <>	Unixware 7.x port
Shawn Clifford <> SunOS port
J Robert Ray <>		Windows (Cygwin) port.
Tom Wyant <>		Darwin port.
Mike Steinert <>
					Nonstop-UX port.
<>		Openbsd port.

Please note that Bernard Schmalhofer is no longer able to provide
support for the dec_osf port.
Copyright (c) 1998-2008 Daniel J. Urist. All rights reserved.
This package is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

Daniel J. Urist
Something went wrong with that request. Please try again.