PMDF User's Guide
OpenVMS Edition


Previous Contents Index


ATTACH

Switch terminal control to another process in your job.

Syntax

ATTACH [process-name]

Qualifiers Defaults
/PARENT See text

Parameters

process-name

Optional parameter specifying the name of the process to which to switch.

Description

With the ATTACH command you can switch terminal control between processes that you have created with the SPAWN command.


Qualifiers

/PARENT

Attach to the parent process of your current process. This qualifier cannot be used in conjunction with the process-name parameter.

Examples

One common use of the ATTACH command is to move between a process running an editor and a process reading mail. The ATTACH command lets you repeatedly leave PMDF MAIL without having to exit and restart PMDF MAIL every time.


$ EDIT WORK.TXT
   .
   .
   .
  ^Y
$ SPAWN PMDF MAIL
%DCL-S-SPAWNED, process MROCHEK_1 spawned 
%DCL-S-ATTACHED, terminal now attached to process MROCHECK_1 
EMAIL> READ/NEW
  .
  .
  .
MAIL> ATTACH/PARENT
%DCL-S-RETURNED, control returned to process MROCHECK 
   .
   .
   .
  ^Y
$ ATTACH MROCHECK_1
EMAIL> 
In the above example, the editing session is interrupted by typing CTRL/Y, and a subprocess running PMDF MAIL is created. After reading some new messages, the ATTACH command is then used to return to the parent process where the editing session is resumed. After again exiting the editor, the DCL ATTACH command is then used to resume the mail reading session.


Previous Next Contents Index