Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101009 > unrolled thread
| Started by | Carlos Barera <carlos.barera@gmail.com> |
|---|---|
| First post | 2015-12-30 21:14 +0200 |
| Last post | 2015-12-30 21:14 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
subprocess check_output Carlos Barera <carlos.barera@gmail.com> - 2015-12-30 21:14 +0200
| From | Carlos Barera <carlos.barera@gmail.com> |
|---|---|
| Date | 2015-12-30 21:14 +0200 |
| Subject | subprocess check_output |
| Message-ID | <mailman.82.1451506711.11925.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web