Call a shell command from Python

D'Arcy Cain darcy at vex.net
Tue Nov 1 11:23:09 EDT 2016


On 2016-11-01 01:23 AM, Ben Finney wrote:
> Wildman via Python-list <python-list at python.org> writes:
> So the way your script was invoked has no bearing on whether Bash will
> get involved in what your script does. Your script is *directly*
> invoking programs, and if you don't ask for a shell to be involved you
> won't get it.

In other words, the OP's script *is* bash in this scenario or a 
reasonable facsimile thereof.

The subject probably should have been "Emulating a shell in Python."  Of 
course, if the OP knew to use that subject he probably would have 
already had the answer.  :-)

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:darcy at Vex.Net
VoIP: sip:darcy at Vex.Net



More information about the Python-list mailing list