process(3)

NAME

Proc::ProcessTable::Process - Perl process objects

SYNOPSIS

$process->kill(9);
$process->priority(19);
$process->pgrp(500);
$uid = $process->uid;
...

DESCRIPTION

This is a stub module to provide OO process attribute
access for Proc::ProcessTable. Proc::ProcessTable::Process
objects are constructed directly by Proc::ProcessTable;
there is no constructor method, only accessors.

METHODS

kill
Sends a signal to the process; just an aesthetic wrap
per for perl's kill. Takes the signal (name or number)
as an argument. Returns number of processes signalled.
priority
Get/set accessor; if called with a numeric argument,
attempts to reset the process's priority to that num
ber using perl's <B>setpriority function. Returns the
process priority.
pgrp
Same as above for the process group.
all other methods...
are simple accessors that retrieve the process
attributes for which they are named. Currently sup
ported are:

uid UID of process
gid GID of process
euid effective UID of process (So
laris only)
egid effective GID of process (So
laris only)
pid process ID
ppid parent process ID
spid sprod ID (IRIX
only)
pgrp process group
sess session ID
cpuid CPU ID of processor running on (IRIX
only)
priority priority of process
ttynum tty number of process
flags flags of process
minflt minor page faults (Lin
ux only)
cminflt child minor page faults (Lin
ux only)
majflt major page faults (Lin
ux only)
cmajflt child major page faults (Lin
ux only)
utime user mode time (1/100s of seconds) (Lin
ux only)
stime kernel mode time (Lin
ux only)
cutime child utime (Lin
ux only)
cstime child stime (Lin
ux only)
time user + system time
ctime child user + system time
timensec user + system nanoseconds part (So
laris only)
ctimensec child user + system nanoseconds (So
laris only)
qtime cumulative cpu time (IRIX
only)
size virtual memory size (bytes)
rss resident set size (bytes)
wchan address of current system call
fname file name
start start time (seconds since the epoch)
pctcpu percent cpu used since process started
state state of process
pctmem percent memory
cmndline full command line of process
ttydev path of process's tty
clname scheduling class name (IRIX
only)
See the "README.osname" files in the distribution for
more up-to-date information.

AUTHOR

D. Urist, durist@world.std.com

SEE ALSO

Proc::ProcessTable.pm, perl(1).
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout