Execute system command with os.system() : Os : Buildin Module PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Module » Os »

 

Execute system command with os.system()


import os
result = os.system('cat /etc/motd')
print result
        
result = os.system('uname -a')
print result



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Buildin Module
» Os