Created
June 23, 2017 21:29
-
-
Save krispayne/6e35a6fbfa34769b134d970de15b00f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Check version of EPP, if installed | |
import os | |
import sys | |
import subprocess | |
filename = "/Library/CoSoSys/EndpointProtector/EppClient" | |
if os.path.exists(filename): | |
result = subprocess.check_output([filename, "--version"]) | |
result = result.strip().split() | |
result = result[6] | |
else: | |
result = "False" | |
print "<result>" + result + "</result>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment