| Products | Purchase | Support | Download | News | About |
|
|
Support - Script Examples |
||||||||||||||||||||
|
Connection Management
Project: Implement a script which monitors a session’s activity. When there has been no change in the session for a specified period of time, log out and disconnect the session to free resources for other users. Algorithm: Since multiple sessions can be connected, the script needs some means of identifying the appropriate session window, and whether it is connected. Then the script waits for an idle period of no data received for the specified period. This value can be fixed, or read from an INI file. Product used in this example: DynaComm Connectivity Series® 9. (release 9.0.0.0) Relevant Commands and Functions:
CONNECT( ) — Returns connection state of session See Also:
LOAD — Opens a session file A Brief Example:
SHOW
SAVE
WAIT RESUME
In this example, we once again take advantage of associating a Startup Script with a session in Session:Properties, General tab. When the session is opened, the script waits a few seconds for the session to open and connect to the host. Then it reads the window handle value of the active window to be stored in an integer variable and used for the rest of the script. The timeout period is read from a custom INI file in the main DCSeries directory that looks like:
[GENERAL] If this entry or INI file is not found, a default value of 10 minutes is used. At this point, the script waits until the period elapses with no character transmission. At that point, the script executes the commands in the WHEN QUIET block, checking if the session is connected, sending commands to the host to log out, closing the session within DynaComm, and terminating the script. Further development:
|
||||||||||||||||||||
![]() |
Purchase | Contact | Privacy Policy | Terms of Use | Sitemap | Blog |
© 2010 FutureSoft, Inc. All Rights Reserved
|
||||||
|
DynaComm i:filter |
Internet Filtering |
Employee Internet Monitoring |
Managing Internet Access |
Web Filtering |
Internet Monitoring |
DCS Terminal Emulation | TN 3270 | ProComm Plus Replacement | Windows Terminal Emulation | TN 5250 | DynaComm Connectivity Series | MultiView |
||||||