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

Issue in using "subprocess.Popen" for parsing the command output

On Sun, 25 Nov 2018 22:43:10 +0530, srinivasan wrote:

> Dear Python Experts Team,
> As am newbie still learning the python syntax from past 2 weeks, Excuse me,
> If this might be silly question, As I am trying to execute shell command
> (ie, nmcli) using "subprocess.Popen".
> *    return proc.strip().decode("utf-8")*

return proc.decode("utf-8").strip()

<Wildman> GNU/Linux user #557453
The cow died so I don't need your bull!