in reply to Multiple commands with one system call
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multiple commands with one system call
by Anonymous Monk on Sep 29, 2011 at 19:19 UTC | |
|
Re^2: Multiple commands with one system call
by renzosilv (Novice) on Sep 29, 2011 at 14:49 UTC | |
by kennethk (Abbot) on Sep 29, 2011 at 17:02 UTC | |
by renzosilv (Novice) on Sep 29, 2011 at 19:49 UTC | |
by kennethk (Abbot) on Sep 29, 2011 at 22:09 UTC | |
by shriken (Priest) on Sep 30, 2011 at 13:39 UTC |