What Shell Does Os. System Use in Python?
In Python, When I Run a Command with Os. System What Shell Gets Used? 1 1 Answer by Default It Will Run in the Bourne Shell (That Would Be /Bin/Sh). Os...
In Python, when I run a command with
os.system
what shell gets used?
1 Answer
By default it will run in the Bourne shell (that would be /bin/sh).
os.system("/bin/bash \"echo 'Rincewind rules' \" ") to use bash and have it echo "Rincewind rules".