VishalMistry
6th April 2017, 18:36
Hello everybody,

I am doing stpapi.put.field. This will invoke this particular session in background. Is there any way to get process id of this session ?

Thanks,
Vishal

sachinbaan
7th April 2017, 08:34
Hello,

You can make use of pstat().

for example,

procid = -1
procid = pstat( procid, progname, info )

while procid >= 0
procid = pstat( procid, progname, info )
if progname = "tdpur4100m900" then
kill(ids)
endif
ids = procid
endwhile


In above example, you can make use of predefined variable 'parent'. it will return id of your current session.