Index: /tags/ipp-20150329/ippScripts/scripts/sc_remote_exec.pl
===================================================================
--- /tags/ipp-20150329/ippScripts/scripts/sc_remote_exec.pl	(revision 38180)
+++ /tags/ipp-20150329/ippScripts/scripts/sc_remote_exec.pl	(revision 38181)
@@ -95,14 +95,20 @@
 # Hard coded values
 my $DMZ_HOST = $remote_recipe{DMZ_HOST};
-my @SEC_HOSTS= @{ $remote_recipe{SEC_HOST} };
-my $SEC_HOST;
-if ($#SEC_HOSTS != -1) {
-    $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 
-}
-else {
-    $SEC_HOST = '';
+my @SEC_HOSTS = ();
+my $SEC_HOST = '';
+
+if (defined($remote_recipe{SEC_HOST})) {
+    @SEC_HOSTS = @{ $remote_recipe{SEC_HOST} };
+    if ($#SEC_HOSTS != -1) {
+	
+	$SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 
+    }
+    else {
+	$SEC_HOST = '';
+    }
 }
 my $IPP_PATH = $remote_recipe{IPP_PATH};
 my $remote_root  = $remote_recipe{REMOTE_ROOT};
+
 
 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $remote_id);
@@ -201,5 +207,5 @@
     }
     else {
-        $cmd = "$ssh -n $DMZ_HOST $cmd";
+        $cmd = "$scp $file $DMZ_HOST:${destination}";
     }
 
@@ -223,5 +229,5 @@
     }
     else {
-        $cmd = "$ssh -n $DMZ_HOST $cmd";
+        $cmd = "$scp $DMZ_HOST:${destination}  $file";
     }
 
Index: /tags/ipp-20150329/ippScripts/scripts/sc_remote_poll.pl
===================================================================
--- /tags/ipp-20150329/ippScripts/scripts/sc_remote_poll.pl	(revision 38180)
+++ /tags/ipp-20150329/ippScripts/scripts/sc_remote_poll.pl	(revision 38181)
@@ -65,5 +65,4 @@
     defined($cmd_recipe) and
     defined($job_id);
-
 
 
@@ -116,11 +115,15 @@
 # Hard coded values
 my $DMZ_HOST = $remote_recipe{DMZ_HOST};
-my @SEC_HOSTS= @{ $remote_recipe{SEC_HOST} };
-my $SEC_HOST;
-if ($#SEC_HOSTS != -1) {
-    $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 
-}
-else {
-    $SEC_HOST = '';
+my @SEC_HOSTS = ();
+my $SEC_HOST = '';
+
+if (defined($remote_recipe{SEC_HOST})) {
+    @SEC_HOSTS = @{ $remote_recipe{SEC_HOST} };
+    if ($#SEC_HOSTS != -1) {
+	$SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; 
+    }
+    else {
+	$SEC_HOST = '';
+    }
 }
 my $IPP_PATH = $remote_recipe{IPP_PATH};
@@ -434,5 +437,5 @@
     }
     else {
-        $cmd = "$scp $file ${DMZ_HOST}:${destination}";
+        $cmd = "$scp  ${DMZ_HOST}:${destination} $file";
     }
 
