Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Advanced Features
  New Posts New Posts RSS Feed - Detect current session keep-alive setting
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedDetect current session keep-alive setting

 Post Reply Post Reply
Author
Message
ait_wc View Drop Down
Beta Tester
Beta Tester


Joined: January 08 2007
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote ait_wc Quote  Post ReplyReply Direct Link To This Post Topic: Detect current session keep-alive setting
    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?

Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.