Re: oaf-slay improvements



> if ($uname eq "SunOS") {
>       $username = `/usr/ucb/whoami`;
> } else {
>       $username = `/usr/bin/whoami`;
> }

That should really be done with a configure check (AC_PATH_PROG or
something).

> $ps_cmd = "/bin/ps -e -opid,user,args | /bin/grep ".$username;

and that assumes a SVR4-style ps. Is there some perl module that can be
used for process listing stuff instead?

-- Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]