结构:致命错误:local()在执行时遇到错误(返回代码1)

2024-09-30 01:35:09 发布

您现在位置:Python中文网/ 问答频道 /正文

以下错误

>>> local("cat /tmp/11|grep '23'")
[localhost] local: cat /tmp/11|grep '23'
l100.cpu.total,2016-11-30 10:39:00,23.0

>>> local("cat /tmp/11|grep '23:12'")
[localhost] local: cat /tmp/11|grep '23:12'

Fatal error: local() encountered an error (return code 1) while executing 'cat /tmp/11|grep '23:12''

流产。在

在操作系统中返回正常

(烧瓶)[根部@vq22flk01~]#cat/tmp/11 |格雷普'23:12'


Tags: anlocalhostreturnlocal错误codeerrorcpu
1条回答
网友
1楼 · 发布于 2024-09-30 01:35:09

您的错误消息:

Fatal error: local() encountered an error (return code 1) while executing 'cat /tmp/11|grep '23:12''

不要多次使用“”。在

相反,您可以这样写:“cat/tmp/11 | grep'23:12'”

希望有帮助!!在

相关问题 更多 >

    热门问题