@@ -62,30 +62,31 @@ sub bad {
6262# ########################################################################################################################
6363# # EXTERN COMMAND EXECUTION
6464sub 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
7879sub 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