Sascha,

> I can do a "ps -ef|grep PID" and then subtract 2 (one for the grep and one 
> for 
> the parent PID). But that isn't a good solution in my opinion.

Nope, not very efficient, I wouldn't say.  How about this?

        ps -eo ppid= | grep PID | wc -l

Don't forget that the PID in question is that of the SCREEN process and not
the screen process.


                -- Buddy


_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to