Changeset 38180 for trunk/ippScripts/scripts/sc_remote_exec.pl
- Timestamp:
- Apr 24, 2015, 11:25:28 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/sc_remote_exec.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/sc_remote_exec.pl
r38168 r38180 95 95 # Hard coded values 96 96 my $DMZ_HOST = $remote_recipe{DMZ_HOST}; 97 my @SEC_HOSTS= @{ $remote_recipe{SEC_HOST} }; 98 my $SEC_HOST; 99 if ($#SEC_HOSTS != -1) { 100 $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 101 } 102 else { 103 $SEC_HOST = ''; 97 my @SEC_HOSTS = (); 98 my $SEC_HOST = ''; 99 100 if (defined($remote_recipe{SEC_HOST})) { 101 @SEC_HOSTS = @{ $remote_recipe{SEC_HOST} }; 102 if ($#SEC_HOSTS != -1) { 103 104 $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 105 } 106 else { 107 $SEC_HOST = ''; 108 } 104 109 } 105 110 my $IPP_PATH = $remote_recipe{IPP_PATH}; … … 201 206 } 202 207 else { 203 $cmd = "$s sh -n $DMZ_HOST $cmd";208 $cmd = "$scp $file $DMZ_HOST:${destination}"; 204 209 } 205 210 … … 223 228 } 224 229 else { 225 $cmd = "$s sh -n $DMZ_HOST $cmd";230 $cmd = "$scp $DMZ_HOST:${destination} $file"; 226 231 } 227 232
Note:
See TracChangeset
for help on using the changeset viewer.
