gopher/cgi-bin/test
2018-07-03 00:25:25 -04:00

7 lines
191 B
Python
Executable File

#!/usr/bin/env python3
import subprocess
print("iuptime\t\tnull.host\t1")
res = subprocess.check_output("uptime",shell=True).decode("utf-8").strip()
print("i{}\t\tnull.host\t1".format(res))