change the single-quoted string for a double-quoted one, change $[node] to ${node}, escape those double quotes within the string, and beware of the quotes in general with respect to what actually gets passed to the shell.
system ("wrunprb \"*\" \"*\" \"*\" ${node}");
In reply to Re: using variable inside system call
by pbeckingham
in thread using variable inside system call
by natty_dread
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |