Results 1 to 1 of 1
Nov 4, 2013, 23:37 #1
- Join Date
- Oct 2007
- 0 Post(s)
- 0 Thread(s)
Perl script comes out because of a command failure. How to overcome it?
I've a command which installs android apks one after the other. These apks names are stored in a file. I'm accessing the text file and issuing the below commmand to install apks.
$t = new Net::Telnet (Timeout => undef);
$req_apks = "re2.txt";
open(F2, "<", "$req_apks") or die "Cannot open APK Filelist file:$!";
while ($req = <F2>)
@b= $t->cmd("./adb install $req");
But the command "./adb install " is failing after 1 or 2 apks are installed. I've around 10 apks in the text file to be installed. Is there any way so that even if ./adb install commmand fails the script should continue with dying?