Index: trunk/ippScripts/scripts/sc_remote_poll.pl
===================================================================
--- trunk/ippScripts/scripts/sc_remote_poll.pl	(revision 38168)
+++ trunk/ippScripts/scripts/sc_remote_poll.pl	(revision 38180)
@@ -116,11 +116,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 +438,5 @@
     }
     else {
-        $cmd = "$scp $file ${DMZ_HOST}:${destination}";
+        $cmd = "$scp  ${DMZ_HOST}:${destination} $file";
     }
 
