command

Define a command

Description:

This command defines package commands other than those to run applications in the standard way. The command definition may contain an alias subcommand and must contain one of the other subcommands listed below.

Invocation

command name { definition }

Arguments

name
The name of the command.
definition
A Tcl script defining the command in terms of the Tcl procedures declared for a command.

Subcommands

The following keywords are defined within a command definition:
alias – define aliases for the new command
print – print a message
obey – obey a shell command
task – run an action with given parameters
obsolete – define an obsolete command.

Examples:

command abc {

alias def

task xyz { taskparam par=3.0 }

}

Defines command abc to run command xyz with parameter par set to 3.0. def is an alias for abc.


ADAM:

As specified.
IRAF:
As specified.