Forum: Cfengine Help
Subject: Re: Overriding ps option string in 3?
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,19802,19814#msg-19814

Sorry guys, I wish there were a simpler way to get process information,. There 
isn't.

Process information lies in the kernel. Only Linux has a workable /proc 
(although it was Unix 5 that introduced it). Because every kernel is different, 
the code to read from the kernel is highly non-portable.  As you know, I do not 
like embedding
commands in Cfengine, but sometimes it is the only realistic option for 
portability.

I apologise for the mistakes in setting the codes -- some cut and paste errors 
in the svn tree, and I did not check the RH3 is so old that the linux kernel 
did not have threads. I think these issues should be fixed now.

M

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to