MAIL ATTACH — VMS 5.1-B
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. Enter the ATTACH command to get back to back to the
editing session. If you want to read another new mail message, you
can use the ATTACH command to get 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 the /PARENT qualifier or a process-name may be specified.
Qualifiers
Additional information available:
/PARENT
Allows you to attach to your process' parent process.
If there is no parent process an error message is printed.
Examples
1.
$ 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 back 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.