Re: [Tutor] subprocess outputing wrong info to command line

2015-02-20 Thread Steven D'Aprano
On Fri, Feb 20, 2015 at 06:58:17PM -0500, brads wrote: > My subprocess is in error but the same command at the command line works > fine. Are you running the Python script as the same user and from the same location as the command line? If you are running the Python script as an unprivileged us

[Tutor] subprocess outputing wrong info to command line

2015-02-20 Thread brads
My subprocess is in error but the same command at the command line works fine. # cat makekeys.py #!/usr/bin/python3.4 import subprocess import sys import string import os.path import datetime import shlex from time import gmtime, strftime from subprocess import Popen, PIPE, STDOUT