I know I could use the exec() call to start the program and then proceed to run the rest of my commands.
No. That's not how exec works - it replaces the location that perl is running with the specified system command. This means any code after an exec is dead code.
You may get your expected result with something closer to:
system ("vp -e $ENV{VREL} ; vscmd set-measure-mode fast; vscmd pg-address-check off");
Short of that, you'd probably need some sort of daemon, which is likely far more sledge than this hammer needs.
In reply to Re: Multiple commands with one system call
by kennethk
in thread Multiple commands with one system call
by renzosilv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |