I have a shell script with first.sh and it calls a python script second.py internally.While this python script executes it sets some variable var=‘yes’ based on certain parameters.
now i need to pass this var variable to shell script which it is calling and do some processing . Please let me know how to do such.
I tried os.system(‘bash’) ,but its creating new session and the execution of the shell script is not continuing.