I'm using mac osx. I have a process which can go up and down as the day progresses. I want to be able to have a perl program (via a cronjob) restart the process when the process has terminated. I store the process pid ($$) to a database, which the restore process can access. Proc::Processtable
doesn't support MacOS. I then tried using Mac::Processes
, however this process number is not the same as the process pid. However, the Processes::Processes.xs
xs code seems to support translation from the process number to the process id, via the GetProcessPid(PSN) function call, but how do I acess this method in the xs code?