The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
Re-run connection script on disconnect? |
Post Reply |
Author | |
iharper
Newbie Joined: October 13 2015 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: August 30 2017 at 10:01am |
I've written a script in AccuTerm that will connect and login automatically to our D3 server. Part of the script is a loop which will trigger if the initial connection attempt fails (which will happen because the wifi isn't great).
My problem (I think) is that the wifi signal will drop which causes the AccuTerm session to be abandoned. Is there a way to re-run a script when the connection is lost? |
|
iharper
Newbie Joined: October 13 2015 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
I've poured over the AccuTerm docs and the docs for the SAX Basic scripting used with AccuTerm. As far as I can tell there's no way to trigger a disconnect event. I did find a solution to my problem however.
I've got the session setup to auto-close on disconnect and I've set AccuTerm to auto-exit when the last session is closed. Which will totally shutdown AccuTerm when the session is disconnected. To relaunch I've written a Windows batch script that will launch AccuTerm in a loop:
In the event of a disconnect the script will start a countdown and then relaunch AccuTerm after 10 seconds. If desired this CMD window can be closed to prevent the relaunch. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |