[英]Run two processes in parallel one on adb and another on windows using cygwin
我想在adb上運行兩個程序,在Windows上運行另一個程序。 但是,應該並行執行並比較兩者的輸出。
我可以依次使用cygwin:
對於adb:
adb shell ./program1 > out1.txt
對於Windows:
./program2.exe >out2.txt
然后比較out1.txt out2.txt
run.sh文件:
adb shell ./program1 > out1.txt
./program2.exe >out2.txt
out1.txt out2.txt
以上方法首先在adb上運行程序,然后在Windows上運行(依次)
我希望兩個程序都可以並行運行,而diff
都可以完成。
我需要在linux中將一個進程放入后台的方法:
(adb shell ./program1 > out1.txt) & (./program2.exe >out2.txt)
有沒有辦法使用CygWin做到這一點?
我不了解cygwin
但我猜是這樣的:
adb shell ./program1 > out1.txt &
./program2.exe >out2.txt &
wait
diff ...
我假設您正在使用bash
外殼。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.