Xstart Command Tag Definition
Xstart provides a command tag function to automate repetitive commands. Command tags are entered in [Command].
Tag | Description |
|---|---|
<%CR%> | Send CR (Carriage Return, \r) character. |
<%LF%> | Send LF (Line Feed, \n) character. |
<%SEND="string"%> | Send a character string. Xstart does not convert DISPLAY and PCADDR variables in the character string. |
<%WAIT="string1|string2"%> | Stand by for string1 or string2. |
<%SLEEP=n%> | Sleep for n seconds. |
<%POPUP="string"%> | Open the Remote execution result window if a designated character string is received. |
All tags are processed in sequence except for the POPUP tag which is valid till the command is completed in its entirety.
Command tags are supported by TELNET and RLOGIN protocols. To use this function in an SSH protocol, select [Allocate a terminal before executing the command] in the [Options] tab of the SSH Protocol Setup dialog box. When a terminal is allocated, shell environment variables are set as per the general login environment.
Example
The following command is an example of a multi-login. Log in to a host with Xstart, and connect to another host using telnet and run xterm: telnet host2<%CR%><%WAIT="login:"%>root<%CR%> <%WAIT="Password:"%>password<%CR%><%WAIT="$"%>xterm –ls –display $DISPLAY
The following command is an example of the display Remote execution result window when a character string "assword:" is displayed. This command is useful when password expires in a fixed cycle and a new password must be entered before a command line prompt is displayed: <%POPUP="assword:"%>xterm –ls –display $DISPLAY