Get subprocess error output from shell command

Gnarlodious gnarlodious at gmail.com
Sun Apr 3 00:00:43 EDT 2011


On Apr 2, 9:29 pm, Chris Rebert wrote:
> if proc.returncode: # non-zero exit status, indicating error
>     print("Encountered error:")
>     print(error_output) # output the error message
>
Like in my previous post, this only outputs an empty string.
Apparently plutil doesn't communicate well.
-- Gnarlie


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /