I'm trying to get python script to verify if the Linux server is the os release, 5,6 or 7
Can someone help me to guide me to the right direction.
import os
import platform
import sys
os_release = (str(platform.linux_distribution()[0]))
if os_release == "5":
os.system("df -h")
elif os_release == "6":
os.system("date")
elif os_release == "7":
os.system("calc")
Thank you,
pirulo64