#!/usr/bin/env python2
# -*- coding: utf-8 -*-

import subprocess

command = r"C:\PC.RADIO\mpc.exe prev"

try:
    returned_output = subprocess.check_output(command, shell=False, stderr=subprocess.STDOUT)
except Exception, e:
    returned_output = str(e.output)

print("Content-Type: text/html; charset=UTF-8\r\n\r\n")
print("<html>")
print("<body BGCOLOR=Lavender TEXT=Black>")
print("<h3><pre>" + returned_output + "</pre></h3>")
print("</body>")
print("</html>")

2f29c966e8986d5b9baebf179f05c0321a7b68d1
#!/usr/bin/env python2
# -*- coding: utf-8 -*-

import subprocess

command = r"C:\PC.RADIO\mpc.exe prev"

try:
    returned_output = subprocess.check_output(command, shell=False, stderr=subprocess.STDOUT)
except Exception, e:
    returned_output = str(e.output)

print("Content-Type: text/html; charset=UTF-8\r\n\r\n")
print("<html>")
print("<body BGCOLOR=Lavender TEXT=Black>")
print("<h3><pre>" + returned_output + "</pre></h3>")
print("</body>")
print("</html>")
