Print Page | Close Window

Detect current session keep-alive setting

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Advanced Features
Forum Description: Private escape sequences, host integration using the AccuTerm Server and ObjectBridge
URL: https://forum.asent.com/forum_posts.asp?TID=1628
Printed Date: March 26 2026 at 8:51pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: Detect current session keep-alive setting
Posted By: ait_wc
Subject: Detect current session keep-alive setting
Date Posted: November 16 2009 at 10:04pm

Wondering whether there is a script or private command that can be ran from BASIC that can detect the current Accuterm session keep-alive property, whether it is enabled/disabled?




Replies:
Posted By: PSchellenbach
Date Posted: November 18 2009 at 12:26pm
Hi AIT -

You can use a simple script to send the value of the session keepalive property back to the host. Something like this:
EQU ESC TO CHAR(27), STX TO CHAR(2), CR TO CHAR(13)

SCRIPT = 'InitSession.Output CStr(InitSession.TelnetKeepalive) & vbCR'
PRINT ESC:STX:'P':SCRIPT:CR:
INPUT ANS:

Note you might need to use SSHKeepalive instead of TelnetKeepalive if you are using SSH connections.

Thanks,

Pete



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net