鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > 服务器相关 > 批处理 > >

windows批处理 -》 linux平台

来源:互联网 作者:佚名 时间:2015-11-13 08:11
自动化测试进入云测试阶段,windows下批处理要换成linux批处理。改之。。。。 无 echo offSET devID=***********SET mutID=DUT4@ECHO ONmd c:\"%mutID%_%devID%_pull_LS"echo pull crashsmsadb -s %devID% pull /data/crashsms c:\%mutID%_%devID%_pull_LS\cr
自动化测试进入云测试阶段,windows下批处理要换成linux批处理。改之。。。。 <无>
echo off
SET devID=***********
SET mutID=DUT4

@ECHO ON
md c:\"%mutID%_%devID%_pull_LS"

echo pull crashsms
adb -s %devID% pull /data/crashsms c:\%mutID%_%devID%_pull_LS\crashsms
echo pull tombstone
adb -s %devID% pull /data/tombstones c:\%mutID%_%devID%_pull_LS\tombstone
echo pull dropbox
adb -s %devID% pull /data/system/dropbox c:\%mutID%_%devID%_pull_LS\dropbox
echo pull CrashLog
adb -s %devID% pull /sdcard/CrashLog c:\%mutID%_%devID%_pull_LS\CrashLog
echo pull anr
adb -s %devID% pull /data/anr/ c:\%mutID%_%devID%_pull_LS\anr
echo pull CrashDump
adb -s %devID% pull /sdcard/CrashDump c:\%mutID%_%devID%_pull_LS\CrashDump
echo pull RCAlog
adb -s %devID% pull /sdcard/ramdump c:\%mutID%_%devID%_pull_LS\ramdump
echo pull ramdump
adb -s %devID% pull /data/mlog/ c:\%mutID%_%devID%_pull_LS\mlog
echo pull ramdump
adb -s %devID% pull /data/rcalog c:\%mutID%_%devID%_pull_LS\RCAlog
echo pull logaAlong log
adb -s %devID% pull /sdcard/logalong c:\%mutID%_%devID%_pull_LS\logalong
echo pull hprof
adb -s %devID% pull /data/misc/ c:\%mutID%_%devID%_pull_LS\hprof 
adb -s %devID% pull /sdcard/*.hprof c:\%mutID%_%devID%_pull_LS\hprof 
echo all log transfer completed!

pause
#/bin/sh
dev='**********';
devs=$dev'_pull_log';
mkdir $devs;
echo " ";
echo "pull crashsms";
adb -s $dev pull /data/crashsms /home/$devs/crashsms;

echo " ";
echo "pull tombstone";
adb -s $dev pull /data/tombstones /home/$devs/tombstone;

echo " ";
echo "pull dropbox";
adb -s $dev pull /data/system/dropbox /home/$devs/dropbox;

echo " ";
echo "pull CrashLog   sdcard";
adb -s $dev pull /sdcard/CrashLog /home/$devs/CrashLog;

echo " ";
echo "pull CrashLog   ext_card";
adb -s $dev pull /sdcard/CrashLog /home/$devs/CrashLog;

echo " ";
echo "pull anr";
adb -s $dev pull /data/anr /home/$devs/anr;

echo " ";
echo "pull CrashDump";
adb -s $dev pull /sdcard/CrashDump /home/$devs/CrashDump;

echo " ";
echo "pull CrashDump ext_card";
adb -s $dev pull /ext_card/CrashDump /home/$devs/CrashDump;

echo " ";
echo "pull RCAlog    sdcard";
adb -s $dev pull /sdcard/ramdump /home/$devs/ramdump;

echo " ";
echo "pull RCAlog   ext_card";
adb -s $dev pull /ext_card/ramdump /home/$devs/ramdump;

echo " ";
echo "pull ramdump";
adb -s $dev pull /data/mlog/ /home/$devs/mlog;
echo " ";
echo "pull ramdump";
adb -s $dev pull /data/rcalog /home/$devs/RCAlog;

echo " ";
echo "logolong   sdcard";
adb -s $dev pull /sdcard/logalong /home/$devs/logalong;
echo "  ";
echo "logolong  ext_card";
adb -s $dev pull /ext_card/logalong /home/$devs/logalong;

echo " ";
echo  " misc";
adb -s $dev pull /data/misc/ /home/$devs/misc;

echo " ";
echo "hprof";
adb -s $dev pull /sdcard/*.hprof /home/$devs/hprof;
网友评论
<