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 command ?:
> 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 > other)? 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. -- Regards, Dave [RLU #314465] ======================================================================= david.w.n...@ntlworld.com (David W Noon) ======================================================================= _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal