Index: trunk/ippScripts/scripts/addstar_run.pl
===================================================================
--- trunk/ippScripts/scripts/addstar_run.pl	(revision 38937)
+++ trunk/ippScripts/scripts/addstar_run.pl	(revision 38943)
@@ -70,5 +70,5 @@
 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
 pod2usage(
-          -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage",
+          -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname",
           -exitval => 3,
           ) unless
@@ -78,4 +78,5 @@
     defined $stageroot and
     defined $dvodb and
+    defined $dbname and
     defined $camera;
 if ($stage =~ /cam/ && !defined $stage_id) {
@@ -309,5 +310,5 @@
     
     unless ($no_op) {
-            print $dvodbReal;
+            print "$dvodbReal\n";
 	    ## addstar can either save the full set of detections, or just
 	    ## the image metadata, in the dvodb.  this is set in the
@@ -338,4 +339,5 @@
 
 	    if ($stage ne 'fullforce_summary') {
+#		print "IN ADDSTAR VERSION\n";
 		# require a defined output dvo database to run addstar (ie, refuse to use the .ptolemyrc default)
 		$command  = "$addstar -update"; # XXX optionally set -update?
@@ -360,4 +362,5 @@
 	    }
 	    else { # Full force summary case
+#		print "IN LOADGALPHOT VERSION\n";
 		# We need to know the filter to set up the photcode, as the summaries do not include that in the header.
 		# We /could/ set up the addtool stuff to pass that in to the script when needed, but that would require adding 
@@ -368,6 +371,7 @@
 		{
 		    my $ff_command = "$fftool -dbname ${dbname} -summary -ff_id ${stage_id}";
+		    print "$ff_command\n";
 		    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
-			run(command => $command, verbose => $verbose);
+			run(command => $ff_command, verbose => $verbose);
 		    unless ($success) {
 			$error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
