Python fabric findstr 字符串长度
Python fabric findstr string length
我正在通过结构向 windows 主机发送命令...
commmand1 = "findstr -i '" + string + "' 'D:\file\path\" + dat + "*'"
如果我不尝试同时搜索太多字符,则可以正常工作。搜索超过 173 个字符(在本地命令行中有效)。产生错误...
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
也许限制是系统或文本表达特定的。由于我能够在本地执行命令。
http://blog.johnmuellerbooks.com/2013/06/14/limitations-of-the-findstr-utility/
搜索字符串的长度确实有限制。该实用程序似乎有搜索字符串长度限制。
我正在通过结构向 windows 主机发送命令...
commmand1 = "findstr -i '" + string + "' 'D:\file\path\" + dat + "*'"
如果我不尝试同时搜索太多字符,则可以正常工作。搜索超过 173 个字符(在本地命令行中有效)。产生错误...
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
也许限制是系统或文本表达特定的。由于我能够在本地执行命令。
http://blog.johnmuellerbooks.com/2013/06/14/limitations-of-the-findstr-utility/
搜索字符串的长度确实有限制。该实用程序似乎有搜索字符串长度限制。