Index: trunk/ippScripts/scripts/diff_skycell.pl
===================================================================
--- trunk/ippScripts/scripts/diff_skycell.pl	(revision 20456)
+++ trunk/ippScripts/scripts/diff_skycell.pl	(revision 20928)
@@ -27,15 +27,16 @@
 use Pod::Usage qw( pod2usage );
 
-my ($diff_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect);
+my ($diff_id, $diff_skyfile_id, $dbname, $threads, $outroot, $reduction, $verbose, $no_update, $no_op, $redirect);
 GetOptions(
-    'diff_id|d=s'       => \$diff_id, # Diff identifier
-    'dbname|d=s'        => \$dbname, # Database name
-    'threads=s'         => \$threads,   # Number of threads to use
-    'outroot=s'         => \$outroot, # Output root name
-    'reduction=s'       => \$reduction, # Reduction class
-    'verbose'           => \$verbose,   # Print to stdout
-    'no-update'         => \$no_update, # Don't update the database?
-    'no-op'             => \$no_op, # Don't do any operations?
-    'redirect-output'   => \$redirect,
+    'diff_id|d=s'         => \$diff_id, # Diff identifier
+    'diff_skyfile_id|d=s' => \$diff_skyfile_id, # Unique skyfile identifier
+    'dbname|d=s'          => \$dbname, # Database name
+    'threads=s'           => \$threads,   # Number of threads to use
+    'outroot=s'           => \$outroot, # Output root name
+    'reduction=s'         => \$reduction, # Reduction class
+    'verbose'             => \$verbose,   # Print to stdout
+    'no-update'           => \$no_update, # Don't update the database?
+    'no-op'               => \$no_op, # Don't do any operations?
+    'redirect-output'     => \$redirect,
 ) or pod2usage( 2 );
 
@@ -52,4 +53,7 @@
 my $logDest = "$outroot.log";
 $ipprc->redirect_output($logDest) if $redirect;
+
+my $image_id = $diff_skyfile_id;
+my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_DIFF);
 
 # Look for programs we need
@@ -210,4 +214,6 @@
     $command .= " -dumpconfig $configuration";
     $command .= " -dbname $dbname" if defined $dbname;
+    # $command .= " -image_id $image_id" if defined $image_id;
+    # $command .= " -source_id $source_id" if defined $source_id;
 
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
