ramki067 has asked for the wisdom of the Perl Monks concerning the following question:
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 without dying? Thanks, Sharath$t = new Net::Telnet (Timeout => undef); $username="sqa"; $password="Tmie"; $t->open("xxxx.xx.com"); $t->login($username, $password); $req_apks = "re2.txt"; open(F2, "<", "$req_apks") or die "Cannot open APK Filelist file:$ +!"; my $req; while ($req = <F2>) { chomp; @b= $t->cmd("./adb install $req"); print @b; sleep(3); print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl script comes out because of a command failure. How to overcome it?
by kcott (Archbishop) on Nov 05, 2013 at 08:06 UTC | |
by ramki067 (Acolyte) on Nov 05, 2013 at 08:58 UTC | |
by kcott (Archbishop) on Nov 05, 2013 at 09:44 UTC | |
|
Re: Perl script comes out because of a command failure. How to overcome it?
by Athanasius (Cardinal) on Nov 05, 2013 at 07:59 UTC |