我正在尝试执行
f = open("test.txt", "w")
check_call('ack "foo" /path/to/Documents/filename.txt', shell=True, stdout=f)
在一个python jupyter笔记本中,但收到错误
CalledProcessError: Command 'ack "foo" /path/to/Documents/filename.txt' returned non-zero exit status 1
感谢您的帮助。