zakzebrowski has asked for the wisdom of the Perl Monks concerning the following question:
Howdy all.
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?
Thanks.
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?
Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Unix process number on a mac...
by brian_d_foy (Abbot) on Mar 15, 2005 at 05:32 UTC | |
by zakzebrowski (Curate) on Mar 16, 2005 at 02:50 UTC | |
Re: Unix process number on a mac...
by jhourcle (Prior) on Mar 15, 2005 at 14:28 UTC | |
by EvilSuggestions (Acolyte) on Mar 15, 2005 at 20:53 UTC | |
Re: Unix process number on a mac...
by Anonymous Monk on Mar 15, 2005 at 15:36 UTC | |
by Anonymous Monk on Mar 15, 2005 at 21:22 UTC | |
Re: Unix process number on a mac...
by Tuppence (Pilgrim) on Mar 15, 2005 at 22:27 UTC | |
by brian_d_foy (Abbot) on Mar 16, 2005 at 03:27 UTC | |
by Tuppence (Pilgrim) on Mar 16, 2005 at 18:57 UTC |
Back to
Seekers of Perl Wisdom