Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101009
| From | Carlos Barera <carlos.barera@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | subprocess check_output |
| Date | 2015-12-30 21:14 +0200 |
| Message-ID | <mailman.82.1451506711.11925.python-list@python.org> (permalink) |
Hi, Trying to run a specific command (ibstat) installed in /usr/sbin on an Ubuntu 15.04 machine, using subprocess.check_output and getting "/bin/sh: /usr/sbin/ibstat: No such file or directory" I tried the following: - running the command providing full path - running with executable=bash - running with (['/bin/bash', '-c' , "/usr/sbin/ibstat"]) Nothing worked ... Any idea? -carlos
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
subprocess check_output Carlos Barera <carlos.barera@gmail.com> - 2015-12-30 21:14 +0200
csiph-web