View Full Version : Can OSDM find out its own PID?
coroto
07-18-2005, 07:36 PM
I'm wondering how the LISP code in OSDM can inquire/retrieve the process ID number of the OSDM session. Any good ideas? Is it something you'd have to write an external (e.g. VBScript) program to accomplish? In my case I only care about doing this on Windows (not HP-UX).
What if there happens to be >1 OSDM session running on a machine? How could you make sure you were getting the right one?
clausb
07-18-2005, 10:32 PM
I am currently not aware of a way to inquire the process ID from within OSDM. The only hack proposal I can come up with is to start a process from OSDM, have that process inquire its own ID and then, using the ID, walk up the chain of parent processes until it finds SolidDesigner.exe. Disgusting, kind of - still hoping there is a better way to solve this.
What do you need the process ID for?
Claus
GiorgioL
07-26-2005, 03:30 AM
Hello to everybody,
in order to find out the process ID of OSDM (soliddesigner) I write a VBS script.
Digit:
(setf PID (SD-SYS-EXEC "find_pid.vbs Soliddesigner.exe"))
the variable PID there is the number of the processID.
Pay attention to the path where you put the find_pid.vbs file.
Find_pid.vbs script runs well if only one OSDM is active.
Regards. Giorgio L.
P.S.: rename the file in vbs
vBulletin® v3.8.4, Copyright ©2000-2024, Jelsoft Enterprises Ltd.