May-29-2018, 12:14 AM
finally I succeeded!
I have directed the output of the process in an external file and then open it, making sure I have read permission, with the usual built-in "open" function
then I place the code if this to someone can to be help:
I have directed the output of the process in an external file and then open it, making sure I have read permission, with the usual built-in "open" function
then I place the code if this to someone can to be help:
import os def lsblk(): os.system('lsblk >outfile') records=open('outfile', 'r').readlines()