You have $command in single quotes, which do not interpolate the variable's value. You're trying to execute literal '$command'.
Update: Oops, no, that's backticks. Worse yet. You're trying to execute a file named by the text output by $command.
After Compline,
Zaxo
In reply to Re: Re: Re: Redirecting OUTPUT of system($command) to an array
by Zaxo
in thread Redirecting OUTPUT of system($command) to an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |