Я могу работать по этому нормально в командной строке в 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.