import subprocess subprocess.call('pwd', shell=True) subprocess.call('python date.py', shell=True) subprocess.call('root -b -q -l Gauss.C', shell=True) ============================== [kondo@lxplus041]~/python% python subprocess_test.py /afs/cern.ch/user/k/kondo/python 2017-02-06 12:47:00 Applying ATLAS style settings... root [0] Processing Gauss.C... Info in : png file Gauss4.png has been created