t-det command

The t-det command detaches the tape from the current process or from another process. If no device number is specified, then all tape devices currently attached to this process are detached.


 t-det {device.num} {(options}


device.number Number of tape devices. If no device number is specified, then all devices currently attached are detached.
options u Detaches the tape unit from any port except the spooler, which detaches automatically at the end of each job, and the transaction logger. This requires a sys2 privilege level. A device number is required.
z Works only if the owner is the transaction logger.


On D3 UNIX systems, this command detaches the tape from the current port so that other processes, other UNIX users, or other D3 virtual machines can use it.

The u option sends a UNIX signal to the process that owns the tape to force it to close the device. This is done through the trap mechanism.

The t-det command is the default trap for this signal. If the system administrator disables this trap, or uses another command (for example, displaying a message to ask the user to detach the tape instead of taking the tape forcefully), the command fails with the following message:

 The tape is not available for use now

The t-det (u command must be utilized with a specific tape device number or the (u option is ignored.