lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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