the $ (Dollar sigil) in the shell code need to be escaped .. otherwise they will be interpreted by perl.
So - in this case - your passing of the value of $vm_run and $VNCPORT should work OK, but $DOM_ID, $2, $1, and $6 SHELL variables all need to have their $ escaped (pre-pending a "\").
As a computer, I find your faith in technology amusing.
In reply to Re^2: system commands/shell and perl variables.
by NetWallah
in thread system commands/shell and perl variables.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |