#!/usr/bin/python3

import subprocess
import cgi 

print("content-type: text/html")
print()

mydata = cgi.FieldStorage()
contrm = mydata.getvalue("rm_cont")

output = subprocess.getoutput("sudo docker rm -f " + contrm)
print(output)

9e1504a50898bef5a127340a46eebedafabdcc9b
<mask token>

<mask token>
print('content-type: text/html')
print()
<mask token>
print(output)

<mask token>
print('content-type: text/html')
print()
mydata = cgi.FieldStorage()
contrm = mydata.getvalue('rm_cont')
output = subprocess.getoutput('sudo docker rm -f ' + contrm)
print(output)

import subprocess
import cgi
print('content-type: text/html')
print()
mydata = cgi.FieldStorage()
contrm = mydata.getvalue('rm_cont')
output = subprocess.getoutput('sudo docker rm -f ' + contrm)
print(output)

#!/usr/bin/python3

import subprocess
import cgi 

print("content-type: text/html")
print()

mydata = cgi.FieldStorage()
contrm = mydata.getvalue("rm_cont")

output = subprocess.getoutput("sudo docker rm -f " + contrm)
print(output)
