android - Stopping logcat using batch file -


@for /f "delims=|" %%f in ('dir /b "c:\users\user\desktop\apks\"*.apk') ( adb install "c:\users\user\desktop\apks\%%f" adb logcat > "c:\users\user\desktop\parser\logstoparse\%%f.txt"  ) 

so, right need run bunch of aps , log each of them. problem loop run once , stop log first app, keep going rest of ones after installing them well.

any idea how i'd terminate it? know adb logcat -d works opening logcat , seeing whats going on millisecond, problem need open 5 minutes , automated.

so far i've tried: sending null or bad request after x amount of time, sleeping, breaking, etc.

the thing seems work sending terminal ctrl+c command manually. there way manually after 5 minutes of logging using logcat?

thanks.

after install apk, wait 5 minutes in batch,then use adb logcat -d.
"wait" in batch, can use timeout or ping command, this:

ping 1.1 -n 1 -w 3000>nul timeout /t 3 

full script:

@for /f "delims=|" %%f in ('dir /b "c:\users\user\desktop\apks\"*.apk') (     adb logcat -c     adb install "c:\users\user\desktop\apks\%%f"     timeout /t 300     adb logcat -d > "c:\users\user\desktop\parser\logstoparse\%%f.txt"  ) 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -