RuTTY - a modified version of PuTTY
PuTTY is copyright 1997-2019 Simon Tatham
RuTTY is copyright 2013-2019, Ernst Dijk
Record and Replay PuTTY, RRPuTTY, RuTTY !
RuTTY adds scripting to PuTTY, scripting the easy way, record and replay.
Ever needed to send a list of commands to a host ? Copy and Paste is a possibility.
However, sometimes the list is to long for the host to handle, so you end up copying/pasting every single line.
RuTTY waits after sending a command, a fixed amount of time, or even for the host prompt to return.
RuTTY can also check host response for 'forbidden' words like "error" and "failed".
example:
many command lines, fastest command needs 10ms to execute, the slowest 2 seconds. prompt is " m2@m $ "
* set line delay to 2000ms
* or enable 'wait for host response', enter the prompt as 'wait for' condition
if one of the commands would change the prompt you could leave 'wait for' empty and set a small line delay like 10ms
* or you can enter both prompts as a 'wait for' condition, using qouted words: "m2@m$" "m2@m /home $"
* or, to make sure cd /home was successfull, enter it as a condition in your script file:
cd /home
::this is a comment line, the condition below makes the script wait for the changed prompt
:m2@m /home $
example 2:
conditions in file can be used for automated login:
::wait for the login question
:login
your_username
:password
your_password
RuTTY records what you type, not what is send to the host. RuTTY records lines, when you press Enter a Cariage Return is recorded, a LineFeed is added to mark the end of the line, and the line is stored in the file.
At replay the line is read, the LF removed, and the line is send to the terminal.
Note: when you press Enter the terminal emulator might send CR or CR+LF to the host.
Same with replay, when sending an CR to the terminal emulator it might send CR or CR+LF to the host.
If you create a script file with a linux style of editor only a LF is added when you press Enter, you must put the CR in the file yourself or change the 'CR/LF translation' settings. A dos/windows editor puts CR+LF in the file when you press Enter. Lines without a CR can be usefull though, p.a. a menu choise where you only would need to press 1 and not 1 + Enter.
When editing a recorded script please note that a CR is recorded as CRLF, a LF as LFLF, a CRLF as CRLFLFLF