Proc::P...:Process(3)

✨ Proc::P...:Process(3) β€” Proc::ProcessTable::Process ✨

okay bestie, welcome to the User Contributed Perl Documentation glow-up for Proc::ProcessTable::Process β€” the Perl process objects page. This is your group-chat briefing, and every accessor, platform note, and literal detail is staying exactly where it belongs. no cap. πŸ’…

πŸ’– NAME πŸ’–

Proc::ProcessTable::Process β€” Perl process objects. That’s the whole name vibe, and yes, it’s iconic. 🫢

🌸 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. so if you were looking for some new situation, bestie, that’s not the vibe here β€” the accessors are the main characters. ✨

πŸ’… METHODS πŸ’…

πŸ’€ kill πŸ’€

Sends a signal to the process; just an aesthetic wrapper 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 number using perl's 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 supported are:

  • uid β€” UID of process
  • gid β€” GID of process
  • euid β€” effective UID of process (Solaris only)
  • egid β€” effective GID of process (Solaris 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 (Linux only)
  • cminflt β€” child minor page faults (Linux only)
  • majflt β€” major page faults (Linux only)
  • cmajflt β€” child major page faults (Linux only)
  • utime β€” user mode time (1/100s of seconds) (Linux only)
  • stime β€” kernel mode time (Linux only)
  • cutime β€” child utime (Linux only)
  • cstime β€” child stime (Linux only)
  • time β€” user + system time
  • ctime β€” child user + system time
  • timensec β€” user + system nanoseconds part (Solaris only)
  • ctimensec β€” child user + system nanoseconds (Solaris 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 πŸ‘‘

J. Bargsten, D. Urist. absolute legends. 🫢

⭐ SEE ALSO ⭐

Proc::ProcessTable, perl(1). go read those too, bestie. πŸ’–


πŸ’– okay that’s the whole page! Cute little footer note: this is perl v5.42.0, dated 2023-06-22, and the manual entry is Proc::P...:Process(3). Bye bestie, go signal some processes responsibly! πŸ’…βœ¨

πŸ“¦ where this page comes from