Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101009 > unrolled thread

subprocess check_output

Started byCarlos Barera <carlos.barera@gmail.com>
First post2015-12-30 21:14 +0200
Last post2015-12-30 21:14 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  subprocess check_output Carlos Barera <carlos.barera@gmail.com> - 2015-12-30 21:14 +0200

#101009 — subprocess check_output

FromCarlos Barera <carlos.barera@gmail.com>
Date2015-12-30 21:14 +0200
Subjectsubprocess 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web