2017-08-15 144 views
0

我每天使用下面的命令進行調試:打開命令組時自動執行命令?

adb logcat -s Unity | findstr /c:"[U]" /c:"[W]" /c:"[D]" 

我愛ConEmu,但我無法理解某些「預定義的任務」功能。我如何啓動一個自動執行上述命令的新控制檯選項卡?以下是我試過,但它不工作:

enter image description here

這將導致以下的輸出:

Invalid filter expression '/c:[U]' 
Usage: logcat [options] [filterspecs] 
options include: 
<remainder of help file> 

看起來它可能是與引號?我需要以某種方式逃避它們嗎?

回答

0

ConEmu不支持管道本身。如果你想運行這樣的輸送機,你應該使用cmd /c ...bash -c

cmd /c "adb logcat -s Unity | findstr /c:"[U]" /c:"[W]" /c:"[D]""