How do i reference the current bash process id?



  • Man page for bash.

    This can be use to determine your current bash process id, in a script or command line.

    $ echo $BASHID
    10627
    

    Inside the script it will be the bash process id used when executing your script (sub_shell) and will not be the same.


Log in to reply
 

© Lightnetics 2024