VMS Help
DEFRAGMENT, ATTACH
*Conan The Librarian
|
The ATTACH subcommand transfers control from the current process
(which then hibernates) to the specified process.
Format
DEFRAGMENT ATTACH { process-name } [ /QUALIFIERS ]
process-name
The process-name specifies the name of a process to which control
transfers. The process must already exist, be part of your
current job, and share the same input stream as your current
process. However, the process cannot be your current process or a
subprocess created with the /NOWAIT qualifier.
Process names can contain from 1 to 15 alphanumeric characters.
If a connection to the specified process cannot be made, an error
message is displayed.
o The ATTACH command cannot be used if your terminal has an
associated mailbox.
o You cannot use the process-name parameter with the
/IDENTIFICATION qualifier.
o You must supply either a process name or a PID for this
command.
3.1 - /IDENTIFICATION
/IDENTIFICATION=pid
/IDENTIFICATION lets you specify the process
identification (PID) of the process to which terminal
control will be transferred. Leading zeros can be
omitted.
The following are examples of the ATTACH command:
1.$ DEFRAGMENT ATTACH JONES_2
This ATTACH command transfers the terminal's control to the
subprocess named JONES_2.
2.$ DEFRAGMENT ATTACH /IDENTIFICATION=2A401A1B
This ATTACH command switches control from the current process
to the process whose PID is 2A401A1B.