I’d like to use os.system('md5sum myFile') and have the result returned from os.system instead of just runned in a subshell where it’s echoed.
In short I’d like to do this:
resultMD5 = os.system('md5sum myFile')
And only have the md5sum in resultMD5 and not echoed.
subprocessis better than usingos.systemoros.popenOr just calculate the md5sum yourself with the
hashlibmodule.