How to get process-ID?
Posted in 1995
> From: ant01 <ant01@margherita.record.unipd.it> > To: informix-list@rmy.emory.edu > > TO every readers : > > Does anyone knows how to get the process-ID of a 4gl-program (RDS version) > directly in the program ? Exist any variable that keeps this value > or function to get it? > > Any form of help will be much appreciated. thank you. > > Andrea Antonello > Treviso - Italy Here's one way: set an environment variable in the shell: my_id=$$ exec the .4ge use fgl_getenv() to read the variable We can do this becuase we exec the .4ge from the shell, it was not a big change for us. Caio, __________________________________________________________________ | Clem Akins Standard Disclaimers Apply | |Reynolds Metals Co, Alloys Plant "Climb High, Cave Deep!" | | Muscle Shoals, Alabama USA cwakins@leia.alloys.rmc.com | |________________________________________________________________|