PID of current session on UNIX/Linux

DeVNuLL

New Member
Hi Guys,

I am trying to find a way of determining my PID using progress so I can determine my pid in the web-disp.p of a running webspeed agent.

I have found a solution on the progress knowledge base (P6250) which works by calling KERNEL32.DLL on windows. Is there a unix equivelent or a progress function I can call?

Any help will be much appreciated.

Regards,

DeVNuLL.
 
What if you are connecting in CHUI client/server mode? Our users connect in on one box which then connects into the database server using a client/server connection.

How do I get both the local pid and the remote pid?

thanks,
Kevin
 
The remote PID of what? If they are running a ChUI client in a PC and connecting client/server, then the only processes on the server are the database processes. If they are telneting in, then they are self-service clients running on the server and they have a PID there, but no local PID, unless you want to count the one for the telnet session, but that isn't a Progress process.
 
I was under the impression that if a user connects into Server1 with pid 31513 via telnet. then that progress client connects into Server2 using Client/Server mode through a broker, that broker session will have its own pid on Server2.

My end result is that I want to gather read,create,update,delete's and also other db stats for a given progress session or program that is executed.

Kevin
 
If you have one self-service client session connected to two databases, you have one process, therefore one PID
 
Code:
define variable ppid as character no-undo.

input through value( "echo $$" ).
import ppid.
input close.

display ppid.

This will give you the PID of the session that is running. Whether or not that maps to something useful for your purpose is a bit unclear to me right now. If I were you I'd probably be more interested in the "id" field of _myconnection.

You should also be aware that table stats on a per user basis are not available prior to 10.1B.
 
Back
Top