Index: /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_mk_stack_mdc.pl
===================================================================
--- /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_mk_stack_mdc.pl	(revision 38080)
+++ /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_mk_stack_mdc.pl	(revision 38081)
@@ -9,4 +9,5 @@
 
 my $remote_root = '/scratch3/watersc1/';
+$remote_root = '/lus/scratch/mehuber7/';
 
 my ($compmap_file);
Index: /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_prepare_stack.pl
===================================================================
--- /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_prepare_stack.pl	(revision 38080)
+++ /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_prepare_stack.pl	(revision 38081)
@@ -21,7 +21,10 @@
 # my $remote_root   = '/lustre/scratch1/turquoise/watersc1/ps1/'; # Far side destination base location
 my $remote_root     = '/scratch3/watersc1/';  # Far side destination base location
+$remote_root = '/lus/scratch/mehuber7/';
+
 my $remote_hostname = "LANL/Mustang";         # Name of the remote node.
+$remote_hostname = "UH/Cray";
 my $threads_req     = 4;                      # How many threads are we going to use?
-my $have_warps      = 0;                      # Do we have a copy of the warp if we don't find one there?
+my $have_warps      = 1;                      # Do we have a copy of the warp if we don't find one there?
 
 my $fail_state = "prep_fail";
@@ -210,7 +213,14 @@
     $ppstack_command    .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF -F PSPHOT.BACKMDL PSPHOT.BACKMDL.MEF ";
     $ppstack_command    .= " -F SOURCE.PLOT.MOMENTS SOURCE.PLOT.SKY.MOMENTS -F SOURCE.PLOT.PSFMODEL SOURCE.PLOT.SKY.PSFMODEL ";
-    $ppstack_command    .= " -F SOURCE.PLOT.APRESID SOURCE.PLOT.SKY.APRESID -R PPSTACK.OUTPUT FITS.TYPE COMP_STACK ";
-    $ppstack_command    .= " -R PPSTACK.OUTPUT.VARIANCE FITS.TYPE COMP_STACK  -R PPSTACK.UNCONV FITS.TYPE COMP_STACK ";
-    $ppstack_command    .= " -R PPSTACK.UNCONV.VARIANCE FITS.TYPE COMP_STACK";
+    $ppstack_command    .= " -F SOURCE.PLOT.APRESID SOURCE.PLOT.SKY.APRESID ";
+    ## large stacks should not be compressed, this is bad hardcoding
+    #-R PPSTACK.OUTPUT FITS.TYPE COMP_STACK ";
+    #$ppstack_command    .= " -R PPSTACK.OUTPUT.VARIANCE FITS.TYPE COMP_STACK  -R PPSTACK.UNCONV FITS.TYPE COMP_STACK ";
+    #$ppstack_command    .= " -R PPSTACK.UNCONV.VARIANCE FITS.TYPE COMP_STACK";
+    $ppstack_command    .= " -F PPSTACK.OUTPUT PPSTACK.OUTPUT.NOCOMP -F PPSTACK.OUTPUT.VARIANCE PPSTACK.OUTPUT.VARIANCE.NOCOMP ";
+    $ppstack_command    .= " -F PPSTACK.OUTPUT.EXPWT PPSTACK.OUTPUT.EXPWT.NOCOMP -F PPSTACK.OUTPUT.EXP PPSTACK.OUTPUT.EXP.NOCOMP ";
+    $ppstack_command    .= " -F PPSTACK.UNCONV PPSTACK.UNCONV.NOCOMP -F PPSTACK.UNCONV.VARIANCE PPSTACK.UNCONV.VARIANCE.NOCOMP ";
+    $ppstack_command    .= " -F PPSTACK.UNCONV.EXPWT PPSTACK.UNCONV.EXPWT.NOCOMP -F PPSTACK.UNCONV.EXP PPSTACK.UNCONV.EXP.NOCOMP ";
+    ##
     $ppstack_command    .= " -tracedest ${remote_outroot}.trace -log ${remote_outroot}.log ";
     $ppstack_command    .= " -threads $threads_req ";
Index: /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_remote_exec.pl
===================================================================
--- /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_remote_exec.pl	(revision 38080)
+++ /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_remote_exec.pl	(revision 38081)
@@ -16,10 +16,17 @@
 # Hard coded values
 my $DMZ_HOST = 'wtrw';
+$DMZ_HOST = '128.171.123.18';
+
 my @SEC_HOSTS= ('mu-fe1','mu-fe2','mu-fe3'
 		# ,'mu-fe4'
     );
 my $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; # 'mu-fe';
+$SEC_HOST = '';
+
 my $IPP_PATH = '/turquoise/usr/projects/cosmo/mswarren/ipp/';
+$IPP_PATH = '/home/mehuber7/src/';
+
 my $remote_root  = '/scratch3/watersc1/';
+$remote_root = '/lus/scratch/mehuber7/';
 
 # tools
@@ -111,8 +118,10 @@
 # Run real command
 my (undef,$remote_command) = &uri_convert($uri_command);
-my $ssh_exec_stdout = &ssh_exec_command("msub -V $remote_command");
+my $ssh_exec_stdout = &ssh_exec_command("sbatch $remote_command");   ##"msub -V $remote_command");
 if ($#{ $ssh_exec_stdout } != -1) { # Parse the output
-    $job_id = ${ $ssh_exec_stdout }[0];
-    chomp($job_id);
+    my $line = ${ $ssh_exec_stdout }[0];
+    chomp($line);
+    my @line_split = split /\s+/, $line;
+    $job_id = $line_split[-1];
     $job_id =~ s/\s+//g;
 }
@@ -141,5 +150,11 @@
     my $file = shift;
     my $destination = shift;
-    my $cmd = "$scp $file ${DMZ_HOST}:${SEC_HOST}:${destination}";
+    my $cmd;
+    if ($SEC_HOST ne '') {
+        $cmd = "$scp $file ${DMZ_HOST}:${SEC_HOST}:${destination}";
+    }
+    else {
+        $cmd = "$scp $file ${DMZ_HOST}:${destination}";
+    }
 
     my $directory = dirname($destination);
@@ -157,6 +172,11 @@
     my $destination = shift;
     my $file = shift;
-
-    my $cmd = "$scp ${DMZ_HOST}:${SEC_HOST}:${destination} $file ";
+    my $cmd;
+    if ($SEC_HOST ne '') {
+        $cmd = "$scp $file ${DMZ_HOST}:${SEC_HOST}:${destination}";
+    }
+    else {
+        $cmd = "$scp $file ${DMZ_HOST}:${destination}";
+    }
 
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
@@ -170,5 +190,11 @@
 sub ssh_exec_command {
     my $cmd = shift;
-    $cmd = "$ssh -n $DMZ_HOST ssh  ${SEC_HOST} $cmd";
+    if ($SEC_HOST ne '') {
+        $cmd = "$ssh -n $DMZ_HOST ssh  ${SEC_HOST} $cmd";
+    }
+    else {
+        $cmd = "$ssh -n $DMZ_HOST $cmd";
+    }
+
     print "EXEC: $cmd\n";
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Index: /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_remote_poll.pl
===================================================================
--- /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_remote_poll.pl	(revision 38080)
+++ /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_remote_poll.pl	(revision 38081)
@@ -29,10 +29,14 @@
 # Hard coded values
 my $DMZ_HOST = 'wtrw';
+$DMZ_HOST = '128.171.123.18';
 my @SEC_HOSTS= ('mu-fe1','mu-fe2','mu-fe3'
-		# ,'mu-fe4'
+		,'mu-fe4'
     );
 my $SEC_HOST = $SEC_HOSTS[int(rand(@SEC_HOSTS))]; # 'mu-fe';
+$SEC_HOST = '';
 my $IPP_PATH = '/turquoise/usr/projects/cosmo/mswarren/ipp/';
+$IPP_PATH = '/home/mehuber7/src/';
 my $remote_root  = '/scratch3/watersc1/';
+$remote_root = '/lus/scratch/mehuber7/';
 
 # tools
@@ -351,5 +355,11 @@
     my $file = shift;
     my $destination = shift;
-    my $cmd = "$scp $file ${DMZ_HOST}:${SEC_HOST}:${destination}";
+    my $cmd;
+    if ($SEC_HOST ne '') {
+        $cmd = "$scp $file ${DMZ_HOST}:${SEC_HOST}:${destination}";
+    }
+    else {
+        $cmd = "$scp $file ${DMZ_HOST}:${destination}";
+    }
 
     my $directory = dirname($destination);
@@ -368,5 +378,11 @@
     my $file = shift;
 
-    my $cmd = "$scp ${DMZ_HOST}:${SEC_HOST}:${destination} $file ";
+    my $cmd;
+    if ($SEC_HOST ne '') {
+        $cmd = "$scp ${DMZ_HOST}:${SEC_HOST}:${destination} $file ";
+    }
+    else {
+        $cmd = "$scp ${DMZ_HOST}:${destination} $file ";
+    }
 
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
@@ -380,5 +396,10 @@
 sub ssh_exec_command {
     my $cmd = shift;
-    $cmd = "$ssh -n $DMZ_HOST ssh  ${SEC_HOST} $cmd";
+    if ($SEC_HOST ne '') {
+        $cmd = "$ssh -n $DMZ_HOST ssh  ${SEC_HOST} $cmd";
+    }
+    else {
+        $cmd = "$ssh -n $DMZ_HOST $cmd";
+    }
     print "EXEC: $cmd\n";
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Index: /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_transfer_tool.pl
===================================================================
--- /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_transfer_tool.pl	(revision 38080)
+++ /tags/ipp-mdpv3-20150326/ippScripts/scripts/sc_transfer_tool.pl	(revision 38081)
@@ -11,8 +11,11 @@
 
 my $scp_cmd = "/usr/projects/cosmo/amd6100/bin/scp";
+$scp_cmd = '/usr/bin/scp';
 my $ssh_cmd = "/usr/projects/cosmo/amd6100/bin/ssh";
+$ssh_cmd = '/usr/bin/ssh';
 
 my $remote_root = '/lustre/scratch1/turquoise/watersc1/ps1/';
-   $remote_root = '/scratch3/watersc1/';
+#   $remote_root = '/scratch3/watersc1/';
+$remote_root = '/lus/scratch/mehuber7/';
 
 #my $local_raw = "${remote_root}/tmp/";
Index: /tags/ipp-mdpv3-20150326/ippTasks/remote.pro
===================================================================
--- /tags/ipp-mdpv3-20150326/ippTasks/remote.pro	(revision 38080)
+++ /tags/ipp-mdpv3-20150326/ippTasks/remote.pro	(revision 38081)
@@ -22,9 +22,9 @@
 
 list STAGES
-  chip
-  camera
+#  chip
+#  camera
 #  warp
   stack
-  staticsky
+#  staticsky
 end
 
@@ -121,5 +121,5 @@
 
     # min entry limit?
-    $run = remotetool -definebyquery -label $label -stage $stage -path_base neb://@HOST@.0/remote/$label -limit 500
+    $run = remotetool -definebyquery -label $label -stage $stage -path_base neb://@HOST@.0/remote/$label -limit 200
     if ($DB:n == 0)
       option DEFAULT
@@ -156,5 +156,5 @@
   periods     -exec 900
   periods     -timeout 30
-  active      true
+  active      false 
   npending    1
 
@@ -293,5 +293,5 @@
     end
     if ("$STAGE" == "staticsky")
-      $command = sc_prepare_staticsky.pl --camera GPC1 --sky_id $STAGE_ID --remote_id $REMOTE_ID --path_base $outroot -dbname $DBNAME
+      $command = sc_prepare_staticsky.pl --camera GPC1 --sky_id $STAGE_ID --remote_id $REMOTE_ID --path_base $outroot --dbname $DBNAME
     end
 
