[fpc-pascal] Checking Linux process existence (child or not) without OS command ?
David W Noon
david.w.noon at ntlworld.com
Mon Sep 21 15:54:30 CEST 2009
On Mon, 21 Sep 2009 14:58:20 +0200 (CEST), T. Guilleminot wrote about
[fpc-pascal] Checking Linux process existence (child or not) without OS
> Does anyone know a simple way to check if a Linux process exists/runs
> (child or not) *without* running an OS command via TProcess (or
One word: procfs
I don't know how you plan to identify the process: by program name,
process id., parent process id., or running as a specific userid.
Whatever you choose, you scan /proc and its subdirectories to see
everything else that is running in userspace under Linux. All the
entries can be treated as text files of directories.
Dave [RLU #314465]
david.w.noon at ntlworld.com (David W Noon)
More information about the fpc-pascal