Skip to content

Instantly share code, notes, and snippets.

View amodkk's full-sized avatar
💭
existing in the context

amodkk amodkk

💭
existing in the context
View GitHub Profile
#!/usr/bin/python
import sys, os, re, subprocess
from subprocess import call
#Function Used to Calculate MD5 Hash
def md5calc():
m = subprocess.Popen(["md5sum", sys.argv[1]], stdout=subprocess.PIPE)
sum, err = m.communicate()
print "The MD5 Sum of the disk image is:", sum