Hi,
I have a program running in batch-mode on a Linux OS and I'm trying to get the PID my program is using from within the program itself. any ideas?
Thank you.
Olivier.
Use VSTs to find the information..
DEF VAR iPID AS INT No-UNDO.
FIND _MyConnection NO-LOCK.
ASSIGN iPID = MyConnection.MyConn-Pid.
DEFINE VARIABLE ppid AS CHAR NO-UNDO.
INPUT THROUGH "echo $PPID".
IMPORT ppid.
INPUT CLOSE.
MESSAGE ppid.
You were both right, thank you very much this helps me a lot. I tried to mark both messages as correct but I couldn't. Sorry about that.
Olivier.