Index: trunk/ippToPsps/scripts/ippToPsps_run.pl
===================================================================
--- trunk/ippToPsps/scripts/ippToPsps_run.pl	(revision 27980)
+++ trunk/ippToPsps/scripts/ippToPsps_run.pl	(revision 28023)
@@ -16,4 +16,5 @@
 # TODO temporary until we use database to store current jobid
 my $jobIdFilePath = "./config/currentJobId.txt";
+my $logFile = "./config/logfile.txt";
 
 # default values for certain globals
@@ -27,4 +28,5 @@
 $singleExpId = undef;
 $datastoreProduct = "PSPS_test";
+
 
 # get user args
@@ -166,4 +168,6 @@
     $query->execute;
 
+    open (LOGFILE, ">> $logFile");
+
     # loop round exposures
     while (my @row = $query->fetchrow_array()) {
@@ -215,4 +219,7 @@
                 }
 
+                # write to the log
+                print LOGFILE "$jobId $expId\n";
+
                 $jobId++;
                 $batchId = 0;
@@ -232,4 +239,5 @@
 
     $db->disconnect();
+    close (LOGFILE);
 
     return 1;
