scriptrockm - a command line script launcher


scriptrockm with tcl scripts can be used instead of compiled C commands for most of the basic operations, like reseting the ROCKM, testing the FIFO and so on.

In this page, you can find the syntax of the command and a short script writing guide.


scriptrockm syntax

The syntax of the command is very simple:

scriptrock chain_nr scriptname
The actual script name is:
$ROCKMTCL/scripts/scriptname.rockm.tcl


Script description

A script should contain only two variable definitions:
rockm_user_description
This variable should contain a detailed description of the script.
rockm_user_command
This variable should contain the script commands.

The following commands are defined:

showinternal
under tclrockm displays the internal page window
under scriptrockm does nothing
showinfo
under tclrockm displays the info page window
under scriptrockm does nothing
showdump
under tclrockm displays the dump window
under scriptrockm does nothing
showstatus
under tclrockm displays the error status window
under scriptrockm does nothing

The following variables are defined:

rockm_user_args
command line parameters
chain_nr
chain number
rockmcid
ROCKM id
An example:
set rockm_user_description {\
Reset the rock
}

set rock_user_command {
 rockm do reset $rockcid
}


Top of the page. ROCKM documention.
Send comments to: Igor Sfiligoi

Created:19.8.1997
Last modified:19.8.1997