How do I create a subprocess?
Use the SPAWN command. Here is an example of interrupting a program, creating a subprocess, doing some stuff in it interactively, and then returning to the program running in the main process: $ run myprog ^Y $ spawn $ dir *.dat Do a couple of commands, this is just an example $ logout $ continue The program completes normally. Note that giving a command other than spawn or attach would have killed the halted program “myprog”. You can also use Spawn to get a subprocess running at the same time as the main process. For instance, the following will start the program XV (an interactive graphics program for DECwindows) and then let you continue with the current session: $ spawn/nowait xv $ Note that a ^Y or ^C at the top session will kill the subprocess.
Use the SPAWN command. Here is an example of interrupting a program, creating a subprocess, doing some stuff in it interactively, and then returning to the program running in the main process: $ run myprog {^Y} $ spawn $ dir *.dat Do a couple of commands, this is just an example $ logout $ continue The program completes normally. Note that giving a command other than spawn or attach would have killed the halted program “myprog”. You can also use Spawn to get a subprocess running at the same time as the main process. For instance, the following will start the program XV (an interactive graphics program for DECwindows) and then let you continue with the current session: $ spawn/nowait xv $ Note that a {^Y} or {^C} at the top session will kill the subprocess.