I have some questions about the subprocess function in python 2.7 I want to build an script that forms an if clause like:
Import os
Import subprocess
process = subprocess ('uname -a')
if process == 'ESXi':
print ('yey')
I am sorry that the code has many mistakes and that my english is so poorly (motherlanguage greek)