! Command

The ! command creates a UNIX shell and executes any UNIX command.

NOTE

For Windows: Running a Windows program that requires input results in a hung program.

Syntax

!{unix.command}

Synonym(s)

sh

Description

The UNIX command parameter is any UNIX command. A shell is created and the command submitted to it. If the UNIX command parameter is omitted, a shell is pushed. D3 messages are held until the UNIX command is complete. If more than one message is received, only the last one displays when returning to TCL.

Each time the ! or sh command is invoked, a new shell is pushed on top of TCL. Control is transferred to this shell. Pressing CTRL+D returns control to TCL.

NOTE

The syntax for this command does not require a space after the ! character.

Macros in the master dictionary make almost all UNIX commands available from D3. Listed below are two useful tips on using this facility:

See Also

create-macro Command

env Command

environ Command

Macros

psh Command

psr Command