Re:Plumbum: Pythonic Shell Combinators
by robrenaud on Saturday May 12, 2012 @11:23PM
(#3965926)
The commands module is now deprecated by the overly complicated subprocess module, but
is much better than
[ Parent
| on HN ]
Re:Plumbum: Pythonic Shell Combinators
by icebraining on Sunday May 13, 2012 @04:47AM
(#3966421)
The subprocess mode is really not that complicated. Your example can be written as:
content = subprocess.check_output(x, shell=True)