MAIL ATTACH — MicroVMS 4.5B
Permits you to switch control of your terminal from your current
process to another process in your job.
The ATTACH command allows you to move quickly between processes that
you have created with the SPAWN command. For example, while you are
editing a file, you can SPAWN a subprocess (MAIL) to read a new mail
message. Then, you can ATTACH back to the editing session. If you
want to read another new mail message, you can ATTACH back to the
MAIL subprocess you already created.
Format:
ATTACH [/PARENT] [process-name]
Additional information available:
Parameters
process-name Indicates the name of the subprocess to which the connection is to be made. Only one of /PARENT or a process-name may be specified.
Qualifiers
Additional information available:
/PARENT
Specifies that you want to attach to your process' parent process.
If there is no parent process an error message is printed.
Examples
1.
MAIL> SPAWN
$ SPAWN MAIL
%DCL-S-SPAWNED, process MAGNANI_3 spawned
%DCL-S-ATTACHED, terminal now attached to process MAGNANI_3
MAIL> ATTACH MAGNANI_2
%DCL-S-RETURNED, control returned to process MAGNANI_2
$ ATTACH MAGNANI
MAIL>
This example shows how to spawn subprocesses (MAGNANI_2 and
MAGNANI_3) to move from MAIL to DCL to MAIL. The ATTACH command
allows you to transfer control between subprocesses.
NOTE
You always SPAWN a new process and ATTACH to a process that
already exists.