[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: stderr from an io.popen ?
- From: pj@...
- Date: Tue, 28 Sep 2010 16:23:28 +1000
Greetings.
Is it possible to
local pipe = io.popen(command, 'rb')
and then get access to any stderr output it may produce ?
This comes from trying to translate from Python:
pipe = subprocess.Popen(command, shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
midi = pipe.stdout.read()
msg = pipe.stderr.read()
Regards, Peter Billam
http://www.pjb.com.au pj@pjb.com.au (03) 6278 9410
"Was der Meister nicht kann, vermöcht es der Knabe, hätt er
ihm immer gehorcht?" Siegfried to Mime, from Act 1 Scene 2