in reply to system does not work but exec. why?

Your exec is probably failing in the same way, but something is keeping you from seeing the error. When you use multiple arguments like that, you are responsible for doing your own argument breakup. Whitespace is no longer significant. Perhaps you want:
system $musclepath, "-in", $inpath, "-out", $outpath, "-stable"; if ($?) { ... something broke, deal with it ... }

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: system does not work but exec. why?
by Anonymous Monk on Nov 12, 2005 at 20:57 UTC
    I knew the wisdom in this temple is unquestionable. It works perfect. Thank you very much.