Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - how to capture errors using scripts
  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 Lockedhow to capture errors using scripts

 Post Reply Post Reply
Author
Message
markm View Drop Down
Newbie
Newbie


Joined: March 17 2004
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote markm Quote  Post ReplyReply Direct Link To This Post Topic: how to capture errors using scripts
    Posted: March 17 2004 at 6:45am
Hello
We are trying to write a script in pick basic that will connect to our offices via DSL and upload a file and then disconnect. We need to be able capture any errors that occur. For example, if we cannot connect to one of our branches we need to know if that failed. Another example is if the logon was unsuccessful, or the connection dropped during the transfer. We were using the accuterm 2000 programmers guide and saw there are return status numbers for connecting via modem. Will these work for DSL connections? If so, can we capture them and send them back to pick via the initsession.output command. Thank you very much.
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: March 19 2004 at 4:45am
Hi -

The modem response codes do not work for network connections, but you can test the Connected property to see if the telnet connection was established. Make sure to un-check the "show comm errors" setting in the Connection tab of the Settings window. Since the login process is scripted, you can tell if it fails (you do not get the expected response). As you suppose, use initsession.output to send the result back to the host.

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.