Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I create a subprocess?

create subprocess
0
Posted

How do I create a subprocess?

0

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.

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123