Hi, I am new to programming
Java in Linux environment.
I need to get to execute "echo $BASHPID" in the terminal console of Linux and get the value returned.
I tried the following codes:
however, an error occurs when I execute the program. It does not recognized "echo $BASHPID". It throws "java.io.IOException: Cannot run program "echo $BASHPID": java.io.IOException: error=2, No such file or directory." Did I miss out a command function?