4 ms·
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
by tocomment 15y 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.
- icebraining 15y agorun = lambda cmd: subprocess.check_output(cmd, shell=True) data = run("ps -e")
- lloeki 15y agoI do something which looks largely the same, except I call it backtick