Skip to content

Commit 293d527

Browse files
Add files via upload
1 parent ba46184 commit 293d527

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

inc/lib/lib/Print.pm

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,30 +62,31 @@ sub bad {
6262
#########################################################################################################################
6363
## EXTERN COMMAND EXECUTION
6464
sub checkExternComnd {
65-
my ($url, $commands)=@_;
65+
my ($url, $popup, $commands)=@_;
6666
my $ic=0;
67-
for my $comnd(@{$commands}) {
67+
for (@{$commands}) {
68+
my $cmdBase = $_;
6869
$ic++;
69-
$comnd = Subs::replaceReferencies($url, $comnd);
70-
print $c[1]." $DT[24] $c[10] [".$ic."/".scalar(@{$commands})."] [$comnd]\n";
71-
$comnd = Subs::getComnd($url, $comnd);
72-
return $comnd;
70+
$cmdBase = Subs::replaceReferencies($url, $cmdBase);
71+
print $c[1]." $DT[24] $c[10] [".$ic."/".scalar(@{$commands})."] [$cmdBase]\n";
72+
$cmdBase = Subs::getComnd($url, $cmdBase);
73+
extern_process($url, $popup, $cmdBase);
7374
}
7475
}
7576

7677
###########################################################################################################
7778
## EXTERN COMMANDS
7879
sub extern_process {
79-
my ($u, $popup, $comnd) = @_;
80+
my ($u, $popup, $ext_cmd) = @_;
8081
if (defined $popup) {
81-
$comnd="xterm -title '$u' -hold -e '$comnd'";
82+
$ext_cmd ="xterm -title '$u' -hold -e '$ext_cmd'";
8283
print "$c[4] [!] $c[10]Opening process in extern window..\n";
8384
sleep 2;
8485
print $c[8]." ";
85-
system("$comnd & ");
86+
system("$ext_cmd & ");
8687
}else{
8788
print $c[8]." ";
88-
system("$comnd");
89+
system("$ext_cmd");
8990
}
9091
print $c[1]. "." x 75 ."\n";
9192
}

0 commit comments

Comments
 (0)