Index: trunk/ippScripts/scripts/addstar_run.pl
===================================================================
--- trunk/ippScripts/scripts/addstar_run.pl	(revision 40803)
+++ trunk/ippScripts/scripts/addstar_run.pl	(revision 41213)
@@ -44,6 +44,7 @@
 my $minidvodb_path;
 
-my ( $add_id, $camera, $stage, $stage_id, $stage_extra1, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,
-     $no_op, $redirect, $save_temps);
+my ( $add_id, $camera, $stage, $stage_id, $stage_extra1, $outroot, $stageroot, $dbname, $reduction,
+     $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $minidvodb_host, $image_only, $verbose,
+     $no_update, $no_op, $redirect, $save_temps, $dvodbhost);
 GetOptions(
     'add_id=s'          => \$add_id, # Camtool identifier
@@ -66,9 +67,10 @@
     'redirect-output'   => \$redirect,
     'save-temps'        => \$save_temps, # Save temporary files?
+    'dvodbhost|w=s' => \$dvodbhost, # miniDVO database group
     ) or pod2usage( 2 );
 
 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
 pod2usage(
-          -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname",
+          -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname --dvodbhost",
           -exitval => 3,
           ) unless
@@ -79,4 +81,5 @@
     defined $dvodb and
     defined $dbname and
+    defined $dvodbhost and
     defined $camera;
 if ($stage =~ /cam/ && !defined $stage_id) {
@@ -297,5 +300,6 @@
 	$minidvodb_path = $comp->{minidvodb_path};
 	$minidvodb_name = $comp->{minidvodb_name};
-	
+        $minidvodb_host = $comp->{minidvodb_host};
+
 	if (!defined($minidvodb_path)) {
 	    &my_die("Unable to parse minidvodb_path", $add_id, $PS_EXIT_PROG_ERROR);
@@ -422,4 +426,5 @@
 $fpaCommand .= " -dvodb_path $minidvodb_path" if defined $minidvodb_path;
 $fpaCommand .= " -minidvodb_name $minidvodb_name" if defined $minidvodb_name;
+$fpaCommand .= " -minidvodb_host $dvodbhost" if defined $dvodbhost;
 $fpaCommand .= " -dbname $dbname" if defined $dbname;
 
@@ -458,5 +463,6 @@
         $command .= " -path_base $outroot" if defined $outroot;
         $command .= (" -dtime_addstar " . ((DateTime->now->mjd - $mjd_start) * 86400));
-   #     $command .= " -minidvodb_name $minidvodb_name" if defined $minidvodb_name; don't think we want it recorded (not sure)
+        $command .= " -minidvodb_name $minidvodb_name" if defined $minidvodb_name; # dont think we want it recorded (not sure)
+        $command .= " -minidvodb_host $dvodbhost" if defined $dvodbhost; # dont think we want it recorded (not sure)
 	$command .= " -stage_extra1 $stage_extra1" if defined $stage_extra1;
         $command .= " -dbname $dbname" if defined $dbname;
