Login  
Search All Forums
Dart Home | PowerVT | Custom Development Reply | PowerVT Topics | Forums   
AuthorForum: PowerVT
Topic: Exit PowerVT with script
pdawson

From: Westerville, OH USA
Posts: 7
Member Since: 04/08/04
posted April 8, 2004 9:54 AM

I am having a problem with Exiting PowerVT from a script when suppling the session through the command prompt. I have created the session and script through PowerVT. I need to open PowerVT, connect to the session, run the script and exit PowerVT. Everything works up to the point of exiting. PowerVT stays active and the only way to exit at that point is to do an End Process on PowerVT. The script will exit fine as long as I don't start the session from the command prompt. I am also able to close PowerVT if I run the session from the command prompt but do not try to exit from the script. I am running PowerVT 3.0.6.4 on Windows 2000. Any help would be greatly appreciated. Thanks.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 8, 2004 10:06 AM

I am not able to comfirm this at my end. Please do the following:

Make a script that just logs in and gets the command prompt, then exits. See if that fails. If it doesn't then try to figure out what part of your script needs to be removed in order to make the problem go away.
pdawson

From: Westerville, OH USA
Posts: 7
Member Since: 04/08/04
posted April 8, 2004 10:40 AM

I have redone my script and can only get it to work if I have no Upon Receiving entries. If I just send the commands it will run the script fine, as soon as I look for something then the Exit command locks up. All I have in my script right now is SendString AT\r, then Upon Receiving OK - Exit. I am running powervt sessions\direct1.pvd from the command prompt. This connects to the modem and runs the script as a login script.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 8, 2004 10:52 AM

Please send the session and script to support@dart.com. Make sure you zip it before sending.
pdawson

From: Westerville, OH USA
Posts: 7
Member Since: 04/08/04
posted April 8, 2004 2:08 PM

I sent my files to support but have been doing some testing. I have hooked up another PC to my serial port to emulate the voicemail system I will be using PowerVT with. I still get the same results, until I do a disconnect in HyperTerminal. At that point the script will start running again and exit PowerVT. I am not sure what gets sent to PowerVT when HyperTerminal disconnects but I believe it is something because just unplugging the cable from the serial port doesn't give the same results.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 8, 2004 2:14 PM

So are you saying that you figured it out or you still need me to look into this? From what you just described, it looks to me like HyperTerminal is causing the problem.

pdawson

From: Westerville, OH USA
Posts: 7
Member Since: 04/08/04
posted April 8, 2004 2:25 PM

I still have the problem. I get the same results if I use a direct serial connect to another serial port using HyperTerminal or to my modem. I also just installed PowerVT on the other PC and still have to disconnect the session before the PowerVT script will continue. I am wanting to use PowerVT to connect to a voicemail system that runs a Dos based OS. The voicemail sends all video and accepts keyboard input through a serial port connected to a PC. I plan on using the scripting of PowerVT to perform automated backups of the voicemail system.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 8, 2004 2:32 PM

Before I get started looking into this I am going to need the EXACT steps that I need to take to do this locally. Please supply them here. I need to know what you are connecting and where.

pdawson

From: Westerville, OH USA
Posts: 7
Member Since: 04/08/04
posted April 8, 2004 3:21 PM

I have 2 laptops connected by serial cable. I am running a terminal emulator on the remote laptop. (I have used PowerVT and Hyperterminal) On the main laptop I am running PowerVT and my script. PowerVT connect to the remote and issues a Hello. The script then waits for a Disconnect phrase. I type Disconnect on the remote laptop and the script tries to Exit. It however hangs until I click the disconnect button on the remote laptop. At that point it finishes the script then Exits PowerVT. I did find that after running the connection if I make a change to the session but not save it that when I issue the phrase that should Exit, the main laptop will ask if I want to save my session. Answering Yes or No will cause the script to continue and I don't need to click the disconnect button on the remote laptop.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 8, 2004 3:36 PM

Is the other computer necessary? When I run the script you sent I get the OK from the AT with nothing connected. I just want to narrow this down to the simplest possible duplication steps.

pdawson

From: Westerville, OH USA
Posts: 7
Member Since: 04/08/04
posted April 8, 2004 3:38 PM

The second laptop is so I can make the connection look more like my voicemail system. At this point though I was unable to get the script to run properly even connecting to my modem. So the second computer is not necessary, just a testing environment for me.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 8, 2004 3:54 PM

Your script was set up to use COM3 which ended up being my modem. The behavior is the same for me. As soon as I put and "Exit" in the script, the session can no longer be closed and I have to kill powervt through the task manager.

I'll write this up and provide you with in issue number in a minute.
pdawson

From: Westerville, OH USA
Posts: 7
Member Since: 04/08/04
posted April 8, 2004 3:56 PM

Ok, Thanks.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 8, 2004 4:17 PM

It's issue #2555

If you need to check on the progress, please contact Dave Harry (sales@dart.com)

Thanks for reporting this.
Reply | PowerVT Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX