Hello:
I am trying to write a script which starts a program and then I need to run a few more commands to modify this running program. My problem is that once I start my program I only come back to the script once this program is terminated by the user. I know I could use the exec() call to start the program and then proceed to run the rest of my commands. However, I would like to only run two more commands and then wait for the program to be terminated by the user. So being able to run a system() call with multiple commands would be ideal for me. Is there any way I can do this ?
I tried doing something like this, which didn't work.I know this code will do what I need. However I need a way to know when my vp program gets terminated by the user so I can run a few more commands.system ("vp -e " . $ENV{'VREL'} ; "vscmd set-measure-mode fast";"vscmd + pg-address-check off");
Thanks for any help.exec ("vp -e " . $ENV{'VREL'} ); exec( "vscmd set-measure-mode fast"); exec("vscmd pg-address-check off");
In reply to Multiple commands with one system call by renzosilv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |