Changeset 38181
- Timestamp:
- Apr 24, 2015, 11:29:43 AM (11 years ago)
- Location:
- tags/ipp-20150329/ippScripts/scripts
- Files:
-
- 2 edited
-
sc_remote_exec.pl (modified) (3 diffs, 1 prop)
-
sc_remote_poll.pl (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20150329/ippScripts/scripts/sc_remote_exec.pl
-
Property svn:mergeinfo
set to
/branches/eam_branches/ipp-20150112/ippScripts/scripts/sc_remote_exec.pl merged eligible /trunk/ippScripts/scripts/sc_remote_exec.pl merged eligible
r38170 r38181 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}; 106 111 my $remote_root = $remote_recipe{REMOTE_ROOT}; 112 107 113 108 114 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $remote_id); … … 201 207 } 202 208 else { 203 $cmd = "$s sh -n $DMZ_HOST $cmd";209 $cmd = "$scp $file $DMZ_HOST:${destination}"; 204 210 } 205 211 … … 223 229 } 224 230 else { 225 $cmd = "$s sh -n $DMZ_HOST $cmd";231 $cmd = "$scp $DMZ_HOST:${destination} $file"; 226 232 } 227 233 -
Property svn:mergeinfo
set to
-
tags/ipp-20150329/ippScripts/scripts/sc_remote_poll.pl
-
Property svn:mergeinfo
set to
/branches/eam_branches/ipp-20150112/ippScripts/scripts/sc_remote_poll.pl merged eligible /trunk/ippScripts/scripts/sc_remote_poll.pl merged eligible
r38170 r38181 65 65 defined($cmd_recipe) and 66 66 defined($job_id); 67 68 67 69 68 … … 116 115 # Hard coded values 117 116 my $DMZ_HOST = $remote_recipe{DMZ_HOST}; 118 my @SEC_HOSTS= @{ $remote_recipe{SEC_HOST} }; 119 my $SEC_HOST; 120 if ($#SEC_HOSTS != -1) { 121 $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 122 } 123 else { 124 $SEC_HOST = ''; 117 my @SEC_HOSTS = (); 118 my $SEC_HOST = ''; 119 120 if (defined($remote_recipe{SEC_HOST})) { 121 @SEC_HOSTS = @{ $remote_recipe{SEC_HOST} }; 122 if ($#SEC_HOSTS != -1) { 123 $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 124 } 125 else { 126 $SEC_HOST = ''; 127 } 125 128 } 126 129 my $IPP_PATH = $remote_recipe{IPP_PATH}; … … 434 437 } 435 438 else { 436 $cmd = "$scp $file ${DMZ_HOST}:${destination}";439 $cmd = "$scp ${DMZ_HOST}:${destination} $file"; 437 440 } 438 441 -
Property svn:mergeinfo
set to
Note:
See TracChangeset
for help on using the changeset viewer.
