gaurav Posted September 15, 2015 Share Posted September 15, 2015 (edited) Hi Guys, To avoid guesswork from multiple open session with %>ps -a | grep ..... How do you access PID of a session *Being inside the same session* ? Tried looking for env var in %>hconfig -a with little luck. Thanks, Edited September 15, 2015 by gaurav Quote Link to comment Share on other sites More sharing options...
pezetko Posted September 15, 2015 Share Posted September 15, 2015 Python: from os import getpid pid = getpid() Hscript (copied from flipbook session menu): `pythonexprs("__import__('os').getpid()")` Quote Link to comment Share on other sites More sharing options...
gaurav Posted September 16, 2015 Author Share Posted September 16, 2015 Sweet ! Thanks, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.