【发布时间】:2016-02-29 08:44:26
【问题描述】:
如何在下面的字符串中放置 grep。我好像没弄好。
p = subprocess.Popen(["tail", "-10", "/datax/qantas/run/tomcat/logs/localhost_access_log.2016-02-29.txt" "|" "grep /checkout-qantas/int/price?"], stdout=subprocess.PIPE)
给我
tail: cannot open /datax/qantas/run/tomcat/logs/localhost_access_log.2016-02-29.txt|grep /checkout-qantas/int/price?' for reading: No such file or directory
【问题讨论】:
标签: python subprocess