Pstree & Pidof

Release date: 
Friday, 18 July, 2025

License:

Interface:

Authors/Port authors:

Rexx language scripts to show a tree diagram of running processes:
  • pstree.cmd: shows the current processes either as a list or as a tree diagram.
  • pidof.cmd: shows the PID(s) of a process, this is a stripped-down version of pstree.cmd that only shows PIDs.
This software is distributed as compressed package. You have to download and manually install it; if prerequisites are required, you will have to manually install them too.

Manual installation

Program is distributed as ZIP package: download to temporary directory and unpack to destination folder. See below for download link(s).

Following ones are the download links for manual installation:

Pstree & Pidof (18/7/2025, Anton Monroe) Readme/What's new
pstree.cmd is a Rexx script inspired by the Linux 'pstree' command. It will draw a tree diagram of the currently running processes showing their parent and child processes. Or it will list them sorted by PID, PPID, SID, etc. By the way, pstree.cmd will also check for files named *.pid under \var\run and its subdirectories, which can sometimes help identify processes. For instance, the process name of my Rexx cron daemon simply shows up as "4OS2.EXE", but I can tell which copy of 4OS2 is the cron daemon because pstree.cmd shows it as DT [19] ÀÄÄÄÄ[149] F:\SYS\APPS\4OS2\4OS2.EXE (crond) pidof.cmd is also a Rexx script, inspired by the Linux 'pidof' command. Given a name, it shows the PID(s) of the named process. It can be used from the command line or called as a function from a Rexx script. for usage, see pstree.cmd -help pidof.cmd -help Anton Monroe
 www.hobbesarchive.com/Hobbes/pub/os2/util/process/pstree.zip(link is external)  local copy
Record updated last time on: 19/07/2025 - 11:47

Translate to...

Add new comment