Previous | Index | Next

Chapter 3: Using ExtraPuTTY

This chapter provides a general introduction to some more advanced features of ExtraPuTTY. For extreme detail and reference purposes, chapter 4 is likely to contain more information.

3.1 During your session

A lot of ExtraPuTTY's complexity and features are in the configuration panel. Once you have worked your way through that and started a session, things should be reasonably simple after that. Nevertheless, there are a few more useful features available.

3.1.1 Send simple command, or sequence of commands

On ExtraPuTTY window you can send data from treeview by double-click into your terminal session.

It's possible to start a sequence of few commands.For do that you must click on the right mouse button and click run scenario on the popup menu.

3.1.2 Scripting a session with lua

During a session you can start a lua script from ExtraPutty window or win32 API.

You can translates (compile) your programs written in the Lua programming language into binary files that can be used instead of lua script.
The main advantages of precompiling chunks are: faster loading, protecting source code from user changes, and off-line syntax error detection, BUT
does not imply faster execution. To do that used luac 5.1.4 compiler. (luac man page)

Example from ExtraPuTTY window :

scenario

3.1.2.1 Some lua functions are available to sciptring your putty session

Note

Example of using:

3.1.3 Different items of Treeview

ExtraPuTTY is composed of one treeview which contained 4 different icon :

3.1.4 The System menu

If you click the left mouse button on the icon in the top left corner of ExtraPuTTY's terminal window, or click the right mouse button on the title bar, you will see the standard Windows system menu containing items like Minimise, Move, Size and Close.

ExtraPuTTY's system menu contains extra program features in addition to the Windows standard options. These extra menu commands are described below.

(These options are also available in a context menu brought up by holding Ctrl and clicking with the right mouse button anywhere in the ExtraPuTTY window.)


3.1.5 The Popup menu

If you click the right mouse button on ExtraPuTTY's editor window, you will see the Popup commands which are described below.


3.2 The ExtraPuTTY command line

ExtraPuTTY can be made to do various things without user intervention by supplying command-line arguments (e.g., from a command prompt window, or a Windows shortcut).

Specific to serial line (missing of putty help) :
putty.exe -serial COMx

3.2.1 Run scenario or lua script on startup of putty session

In order to run a scenario or lua script on startup called "name1" use the -startup option. (Refer to command line help file for complete description of putty options)

putty.exe putty_options -startup "name1" (putty_options for serial line (missing of putty help) : -serial COMx)

3.2.2 To copy all the configuration from the registry to files

It is possible to copy all the configuration from the registry for users who already created sessions with "REG_MODE" mode of ExtraPuTTY and wants to used ExtraPuTTY in "DIR_MODE".To do that use the -sessions-reg-to-file option. This option will :
- create 2 sub-directories: Sessions SshHostKeys which containing all the configuration,
- delete all registry keys.

putty.exe -sessions-reg-to-file

3.2.3 To copy all the configuration from files to registry

It is possible to copy all the configuration from the Files for users who already created sessions with "DIR_MODE" mode of ExtraPuTTY and wants to used ExtraPuTTY in "REG_MODE".To do that use the -sessions-file-to-reg option. This option will delete all configuration files (sessions and SshHostKeys).

putty.exe -sessions-file-to-reg

3.2.4 Display licence dialog box

Display the licence in window dialogbox.To do that use the -license option.

putty.exe -license

3.2.5 Display about dialog box

Display the About in window dialogbox.To do that use the -about option.

putty.exe -about

Note : You need double quotes around the session name if it contains spaces.


If you want to provide feedback on this manual or on the ExtraPuTTY tools themselves, see the Feedback page.

[ExtraPuTTY release 0.29 Compile with PuTTY release 0.64]