How to execute "gksudo umount VirtualDVD"
Demosthenes Koptsis
demosthenesk at gmail.com
Thu Oct 27 17:30:52 EDT 2016
I want to execute the command "gksudo umount VirtualDVD"
My code is this but it fails:
def umount(self):
'''unmounts VirtualDVD''' cmd ='gksudo umount VirtualDVD' proc = subprocess.Popen(str(cmd),shell=True,stdout=subprocess.PIPE).stdout.read()
print proc
It pops up the gksudo dialog, and then fails. But i don't get any stdout
or stderror.
I tried cmd='gksudo ls' and it succeeds.
More information about the Python-list
mailing list