in reply to Re^3: quoting issue with system command
in thread quoting issue with system command

So something like this:

my $command = “c:\\blast\bin\\blastall.exe" -p blastn -d "$hu_seq $hd_seq" -i "$contig" -o $alignment”;
print "$command\n";
system($command);
  • Comment on Re^4: quoting issue with system command

Replies are listed 'Best First'.
Re^5: quoting issue with system command
by ikegami (Patriarch) on May 13, 2009 at 18:14 UTC
    Better:
    my @command = ("c:\\blast\bin\\blastall.exe", -p => 'blastn', -d => "$hu_seq $hd_seq", -i => $contig, -o => $alignment, ); system(@command);

    Note: You've got a problem if -d expects space-separated paths if the paths have spaces in them.

Re^5: quoting issue with system command
by John M. Dlugosz (Monsignor) on May 13, 2009 at 20:26 UTC
    You are missing putting delimiters around the whole thing.