IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 11, 2006, 1:35:17 PM (19 years ago)
Author:
Paul Price
Message:

Need to quote arguments with whitespace with this latest version of IPC::Cmd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/phase0_exp.pl

    r10591 r10625  
    160160    }
    161161 
     162    # Quote arguments with whitespace
     163    for (my $i = 0; $i < scalar @command; $i++) {
     164        if ($command[$i] =~ /\s/) {
     165            $command[$i] = "\'$command[$i]\'";
     166        }
     167    }
     168
    162169    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    163170        cache_run(command => \@command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.