Skip to content

Commit

Permalink
CAF::Process splits on your behalf
Browse files Browse the repository at this point in the history
CAF::Process does the split on your behalf. Just
CAF::Process->new([$cmd]) will do.  Also, pass log => $self as a
parameter to get more traces.
  • Loading branch information
msmark committed Nov 25, 2013
1 parent 24fd9cb commit 8d6cc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncm-spma/src/main/perl/spma-run
Expand Up @@ -304,7 +304,7 @@ sub get_cmdfile
unless (defined($cmdfile)) {
my $path = spmarun::PATH_CMDFILE;
my $cmd = spmarun::NCM_QUERY . " " . $path;
my $proc = CAF::Process->new([split(/ /, $cmd)]);
my $proc = CAF::Process->new([$cmd], log => $self);
my $output = $proc->output();
unless (length($output) > 0) {
$ec->ignore_error() if defined($ec);
Expand Down

0 comments on commit 8d6cc73

Please sign in to comment.