Index: trunk/ippScripts/scripts/publish_file.pl
===================================================================
--- trunk/ippScripts/scripts/publish_file.pl	(revision 24640)
+++ trunk/ippScripts/scripts/publish_file.pl	(revision 24707)
@@ -39,9 +39,10 @@
 
 # Parse the command-line arguments
-my ( $pub_id, $camera, $stage, $stage_id, $format, $product, $workdir );
+my ( $pub_id, $exp_id, $camera, $stage, $stage_id, $format, $product, $workdir );
 my ( $dbname, $verbose, $no_update, $save_temps, $redirect );
 
 GetOptions(
     'pub_id=s'          => \$pub_id, # Publish identifier
+    'exp_id=s'          => \$exp_id, # Exposure identifier
     'camera=s'          => \$camera, # Camera name
     'stage=s'           => \$stage,       # Stage of interest
@@ -57,7 +58,8 @@
 
 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
-pod2usage( -msg => "Required options: --pub_id --camera --stage --stage_id --product --workdir",
+pod2usage( -msg => "Required options: --pub_id --exp_id --camera --stage --stage_id --product --workdir",
            -exitval => $PS_EXIT_CONFIG_ERROR) unless
     defined $pub_id and
+    defined $exp_id and
     defined $camera and
     defined $product and
@@ -66,5 +68,5 @@
     defined $workdir;
 
-my $outroot = "$workdir/$product.$pub_id"; # Output root name
+my $outroot = "$workdir/$product.$pub_id.$exp_id"; # Output root name
 
 my $ipprc = PS::IPP::Config->new( $camera ) or
