In article mailman.330.1262427256.28905.python-l...@python.org,
=?ISO-8859-1?Q?Paul_K=F6lle?= p...@subsignal.org wrote:
If you don't use shell=True you have to provide the full path to
commands (and split command and parameters as you do).
Are you sure? Try this:
print Popen(['ls'],
On Fri, Jan 1, 2010 at 5:08 PM, Diez B. Roggisch de...@nospam.web.de wrote:
Kent Tenney schrieb:
Howdy,
A script running as a regular user sometimes wants
to run sudo commands.
It gets the password with getpass.
pw = getpass.getpass()
I've fiddled a bunch with stuff like
proc =
Am 01.01.2010 23:55, schrieb Kent Tenney:
Howdy,
Hi Kent,
A script running as a regular user sometimes wants
to run sudo commands.
It gets the password with getpass.
pw = getpass.getpass()
I've fiddled a bunch with stuff like
proc = subprocess.Popen('sudo touch /etc/foo'.split(),
Paul Kölle wrote:
Am 01.01.2010 23:55, schrieb Kent Tenney:
Howdy,
Hi Kent,
A script running as a regular user sometimes wants
to run sudo commands.
It gets the password with getpass.
pw = getpass.getpass()
I've fiddled a bunch with stuff like
proc = subprocess.Popen('sudo touch
Howdy,
A script running as a regular user sometimes wants
to run sudo commands.
It gets the password with getpass.
pw = getpass.getpass()
I've fiddled a bunch with stuff like
proc = subprocess.Popen('sudo touch /etc/foo'.split(), stdin=subprocess.PIPE)
proc.communicate(input=pw)
getting
Kent Tenney schrieb:
Howdy,
A script running as a regular user sometimes wants
to run sudo commands.
It gets the password with getpass.
pw = getpass.getpass()
I've fiddled a bunch with stuff like
proc = subprocess.Popen('sudo touch /etc/foo'.split(), stdin=subprocess.PIPE)