Scripting pkHpc
Script processing commands are stored in a text file on the HPC and are executed
at startup when a script name is selected in the configuration, via the File menu or via a command key.
Syntax
Script commands and the data are separated by spaces. A semicolon (;) indicates a comment.
The string information in the wait and transmit commands must be delimited by quotes ("). If
a veritcal bar (|) is found in the string it is interpreted as an escape (ASCII 27) character. If a caret (^)
is encountered the next character is made into a control character (i.e. ^M is control-M, a CR). The sequence [...]
indicates optional information.
The following script commands are available with pkHpc:
Connect
This commmand disconnects from the current host and connects to the specified system
Connect HostName
Where HostName is the name or address of the host system.
Wait
This commmand waits for the specified string from the host system
Wait "the String" [integer/FOREVER]
Where "the String" is the information to wait for and integer/FOREVER is the optional time to wait. The
default is 30 seconds.
Pause
This commmand pauses for the number of seconds indicated prior to executing the next command
Pause integer
Where integer is the time to pause in seconds.
SendKey
This commmand sends for the specified key to the host system
SendKey key
Where key is one of the following:
Backspace, Delete, Down, End, Esc, F1 thru F12, Home, Insert, Left, NumpadAdd, PageDown, PageUp,
Pause, Return, Right, Up or Tab.
You can also preface the key with shift- and/or ctrl- and/or alt-
(don't forget the dash (-)).
Transmit
This commmand sends for the specified string to the host system
Transmit "the string"
Where "the String" is the information to send.
Exit
This commmand causes script processing to stop
Exit
The exit command is optional. Script processing will also stop when the end-of-file is reached.