EWS::procUtils is an object-oriented perl module which contains several commonly used process/program utility methods and attributes.
EWS::procUtils provides the following class methods and attributes:
Public Methods | Description |
---|---|
new | Returns a blessed reference to a new procUtils object. |
createDaemon | Convert the current process to a daemon. |
getMatchingPIDs | Return list of PIDs with same program name as the current process. |
getProgramPIDs | Return list of PIDs with requested name. |
catchAlarm | SIGnal handler for ALaRm (SIGALRM) |
catchInterrupt | SIGnal handler for keyboard INTerrupt (SIGINT). |
catchKill | SIGnal handler for kill INTerrupt (SIGKILL). |
checkEval | Check eval result. |
Public Attributes | Description |
---|---|
Interrupt | Set/get internal interrupt counter. |
parseRegex | Set/get the regex used to parse file names by the getMatchingPIDs and getProgramPIDs methods. |
program | Returns the running process ($$) program. |
program | Returns the running process ($$) program. |
programName | Returns the running process ($$) program name. |
programPath | Returns the running process ($$) program path name. |
Version | Returns the version number of cookies.pm. |