sqspat has asked for the wisdom of the Perl Monks concerning the following question:
foreach my $command1 (@commands){ 48 chomp $command1; 49 50 $command_run = $ssh->exec($command1); 51 52 print $command_run; 53 my @commands_run = (); 54 push (@commands_run, $command_run); -- want to push commands +issued into the @commands_run array. 55 56 } 57 #print @commands_run;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sending commands to CLI and then appending to end of array with push
by davorg (Chancellor) on Jul 13, 2009 at 14:52 UTC | |
|
Re: sending commands to CLI and then appending to end of array with push
by jethro (Monsignor) on Jul 13, 2009 at 14:53 UTC | |
by sqspat (Acolyte) on Jul 13, 2009 at 15:17 UTC | |
|
Re: sending commands to CLI and then appending to end of array with push
by kennethk (Abbot) on Jul 13, 2009 at 14:52 UTC |