Wondering if someone can tell me why the php system call works from the command line, even if executed with php-cgi, but does not work when called from a web browser executed by php-exec via apache:
<?php
system ("rwho -a | grep -v unknown | grep -v lightdm");
?>