Я могу запустить это обычно в командной строке в Linux:
$ tar c my_dir | md5sum
Но когда я пытаюсь вызвать его с помощью Python, я получаю сообщение об ошибке:
>>> subprocess.Popen(['tar','-c','my_dir','|','md5sum'],shell=True)
<subprocess.Popen object at 0x26c0550>
>>> tar: You must specify one of the `-Acdtrux' or `--test-label' options
Try `tar --help' or `tar --usage' for more information.