Y
Hacker News
new
|
ask
|
show
|
jobs
by
tocomment
5302 days ago
I completely agree about subprocess. One thing I like about Perl is that it's dead easy to make a system call. I wish subprocess had a shortcut that's easy to remember/use.
1 comments
icebraining
5302 days ago
run = lambda cmd: subprocess.check_output(cmd, shell=True) data = run("ps -e")
link
lloeki
5302 days ago
I do something which looks largely the same, except I call it
backtick
link