Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Carlos Barera Newsgroups: comp.lang.python Subject: subprocess check_output Date: Wed, 30 Dec 2015 21:14:21 +0200 Lines: 16 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de CpcAcPJEbtxt02ld6/+CuALhJlYWwJiketBAe3KKlQhg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.056 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'skip:/ 10': 0.07; 'received:io': 0.16; 'received:psf.io': 0.16; 'trying': 0.22; 'tried': 0.24; 'command': 0.26; 'installed': 0.26; 'skip:" 20': 0.26; 'message-id:@mail.gmail.com': 0.27; 'idea?': 0.29; 'skip:& 30': 0.30; 'getting': 0.33; 'run': 0.33; 'ubuntu': 0.33; 'file': 0.34; 'worked': 0.34; 'running': 0.34; 'received:google.com': 0.35; 'path': 0.35; 'received:74.125.82': 0.35; 'to:addr:python- list': 0.36; 'skip:& 10': 0.37; 'hi,': 0.38; 'to:addr:python.org': 0.40; 'providing': 0.62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=m7tuLTU6aDNYFlxT1hoKKX4LAomDv5hBUj/nvt9RgMA=; b=N1ew+f/ZAMN8GN6Jo68N5AoLTQzs9iPJBgR2pQ9qiCHqFVYjyIOe+z4k+UDTlPbUv6 8st2fYxC5zPqxlMQnIIh63WY4OQtBfXn6vdkBdQJyPF7jrrQcI2hvVhbKS+AmTqOyjJz X2XJvrP1so5LEfY8pNGNT23DRvtCMcZIn4pySHjcXNG1j+6kXlMZc9j0YuTbRp4wpuuN vbsnVdmgzL9l5N47YnCzcP0wMtWxnrSeyRQd7R9DW9uZV9uBuGDpgnodyyl3cxc4N7zs +gVfzxoE9mf64FHzuBgj3HqOc7m3jb4Vs3C+U0u5RUVtAd3MYVKFaRUTZacieT7kau9k Y7wQ== X-Received: by 10.28.86.196 with SMTP id k187mr70872050wmb.61.1451502861131; Wed, 30 Dec 2015 11:14:21 -0800 (PST) X-Mailman-Approved-At: Wed, 30 Dec 2015 15:18:30 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.20+ X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101009 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