Skip to content

Instantly share code, notes, and snippets.

@krispayne
Created June 23, 2017 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krispayne/6e35a6fbfa34769b134d970de15b00f2 to your computer and use it in GitHub Desktop.
Save krispayne/6e35a6fbfa34769b134d970de15b00f2 to your computer and use it in GitHub Desktop.
#!/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