I am trying to run a command from Python script(using Popen()) get the output as list, instead of string.
For Example, When I use Popen(), it gives the output as string. For commands like “vgs, vgdisplay, pvs, pvdisplay”, I need to get the output as lists and should be able to parse it row and column, so that I can do the necessary action(like deleting the already existing Vg’s etc etc). I was just wondering, if it is possible to get as lists or atleast convert into lists….
I started learning python a week ago, so I might have missed some simple tricks, please pardon me…..
Just to elaborate on the existing comments