how to redirect stderr with: android adb exec-out run-as cat foo.log 2>foo.error > foo.log -
i using script below on unrooted 2013 nexus 7's android 6.0.1 , may patches. if log files exists, well. if not, stderr goes local foo.log file on pc.
is there way fix this?
tried shell here doc, not seem work exec-out.
set package=com.tayek.tablet.gui.android.cb7 ::setlocal enabledelayedexpansion %%i in (0a9196e8) ( adb devices -l | grep %%i >nul if errorlevel 1 ( echo %%i not connected! ) else ( echo %%i connected. adb -s %%i shell run-as %package% ls -l /data/data/%package%/files adb -s %%i exec-out run-as %package% cat /data/data/%package%/files/tablet.0.0.log 2>%%i.0.0.errors.txt 1> %%i.0.0.log adb -s %%i exec-out run-as %package% cat /data/data/%package%/files/tablet.1.0.log 2>%%i.1.0.errors.txt 1> %%i.1.0.log ) )
Comments
Post a Comment