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

Wildman best_lay at yahoo.com
Sun Nov 25 12:30:27 EST 2018


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!



More information about the Python-list mailing list