The Python Oracle

How to call a shell script from python code?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC G Dvoks String Quartet No 12 Ame 2

--

Chapters
00:00 Question
00:18 Accepted answer (Score 350)
00:41 Answer 2 (Score 135)
01:00 Answer 3 (Score 55)
01:32 Answer 4 (Score 32)
01:48 Thank you

--

Full question
https://stackoverflow.com/questions/3777...

Accepted answer links:
[subprocess]: http://docs.python.org/library/subproces...

Answer 2 links:
[this approach]: http://docs.python.org/py3k/library/os.h...

Answer 3 links:
[shlex.split()]: https://docs.python.org/2/library/shlex....

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #shell

#avk47