Use lambda function to find all mount points in our file system. : System Cmd Mount : System PYTHON examples


PYTHON examples » System » System Cmd Mount »

 

Use lambda function to find all mount points in our file system.


Use lambda function to find all mount points in our file system.

import commands

lines = commands.getoutput('mount -v').split('n')
 
points = map(lambda line: line.split()[2], lines)
print points



           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo System
» System Cmd Mount