Changeset 10625 for trunk/ippScripts/scripts/phase0_imfile.pl
- Timestamp:
- Dec 11, 2006, 1:35:17 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase0_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase0_imfile.pl
r10534 r10625 13 13 use PS::IPP::Metadata::Config; 14 14 use PS::IPP::Metadata::Stats; 15 use Data::Dumper; 15 16 16 17 use PS::IPP::Config; … … 114 115 foreach my $constant (keys %{CONSTANTS()}) { 115 116 push @command, CONSTANTS->{$constant}, ($stats->data($constant))->{value}; 117 116 118 } 117 119 foreach my $variable (keys %{VARIABLES()}) { … … 139 141 push @command, "NAN"; 140 142 } 141 143 144 # Quote arguments with whitespace 145 for (my $i = 0; $i < scalar @command; $i++) { 146 if ($command[$i] =~ /\s/) { 147 $command[$i] = "\'$command[$i]\'"; 148 } 149 } 150 142 151 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 143 152 run(command => \@command, verbose => 1);
Note:
See TracChangeset
for help on using the changeset viewer.
