Index: /branches/eam_branches/ipp-20100621/psphot/src/psphotStack.c
===================================================================
--- /branches/eam_branches/ipp-20100621/psphot/src/psphotStack.c	(revision 28985)
+++ /branches/eam_branches/ipp-20100621/psphot/src/psphotStack.c	(revision 28986)
@@ -24,4 +24,13 @@
         exit (psphotGetExitStatus());
     }
+    // Dump configuration
+    bool mdok;
+    psString dump = psMetadataLookupStr(&mdok, config->arguments, "DUMP_CONFIG"); // File for config
+    if (dump && !pmConfigDump(config, dump)) {
+        psError(psErrorCodeLast(), false, "Unable to dump configuration.");
+        exit (psphotGetExitStatus());
+    }
+
+
 
     psLogMsg ("psphot", 3, "complete psphot run: %f sec\n", psTimerMark ("complete"));
