Index: trunk/ippScripts/scripts/phase0_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/phase0_imfile.pl	(revision 10534)
+++ trunk/ippScripts/scripts/phase0_imfile.pl	(revision 10625)
@@ -13,4 +13,5 @@
 use PS::IPP::Metadata::Config;
 use PS::IPP::Metadata::Stats;
+use Data::Dumper;
 
 use PS::IPP::Config;
@@ -114,4 +115,5 @@
     foreach my $constant (keys %{CONSTANTS()}) {
 	push @command, CONSTANTS->{$constant}, ($stats->data($constant))->{value};
+
     }
     foreach my $variable (keys %{VARIABLES()}) {
@@ -139,5 +141,12 @@
 	push @command, "NAN";
     }
- 
+
+    # Quote arguments with whitespace
+    for (my $i = 0; $i < scalar @command; $i++) {
+	if ($command[$i] =~ /\s/) {
+	    $command[$i] = "\'$command[$i]\'";
+	}
+    }
+
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         run(command => \@command, verbose => 1);
