tcl.disc

Verb: Access/TCL, Releases: AP/Unix

Disconnect from virtual machine.

Syntax

disc {(option}

Description

disconnects the current process from the (Pick) virtual machine.

If the process was started from shell (i.e., by typing 'ap'), control is returned to shell.

If the process was started automatically, in the case of a turnkey system, the User process is restarted immediately. In this case, the 'disc' command has no action. However, a different PID is allocated to the process.

If the xon/xoff protocol was changed with the 'xonoff' verb, the new setting might be lost. (see 'xonoff').

When reconnecting by typing 'ap' at shell, the process is reconnected to the virtual machine.

The 'exit' macro executes a 'disc (f'. Trying to shutdown a system where there is one or more processes disconnected with the 'n' option hangs. In fact, it times out after a few minutes. Before doing a shutdown, reconnect these processes and disconnect them with the 'f' option.

This command closes all Unix files. Therefore, it should not be used in a Pick/BASIC EXECUTE statement in a Pick/BASIC program which has Unix files opened.

Options

f Logoff before disconnecting. This option is the default.

n Stays logged on to the Pick account before disconnecting. Processes disconnected with the 'n' option remain logged on to the Pick account and therefore show in the (Pick) 'listu' command. Processes at lower levels are NOT wrapped up.

See Also

Command Name Type Description
tcl.off Verb: Access Terminates session.
tcl.exit Verb: Access Logs off process and disconnects.
tcl.environ Verb: Access Manipulates Unix shell environment variables from TCL.
tcl.env Verb: Access Displays environment variables
basic.%malloc C Function Allocates memory.
virtual.machine Definition Description of virtual machine.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.