Index: trunk/ippScripts/scripts/skycalibration.pl
===================================================================
--- trunk/ippScripts/scripts/skycalibration.pl	(revision 38567)
+++ trunk/ippScripts/scripts/skycalibration.pl	(revision 38644)
@@ -358,9 +358,9 @@
     warn($msg);
     if (defined $skycal_id and not $no_update) {
-        my $command = "$staticskytool -skycal_id $skycal_id -fault $exit_code";
+        my $command = "$staticskytool -skycal_id $skycal_id";
         if ($updateMode) {
-            $command .= ' -updateskycalresult';
+            $command .= " -updateskycal -set_fault $exit_code";
         } else {
-            $command .= " -addskycalresult";
+            $command .= " -addskycalresult -fault $exit_code";
             $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
             $command .= " -hostname $host" if defined $host;
