Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 06-16-2005, 02:46 PM
cythraul's Avatar
cythraul cythraul is offline
Registered User
 
Join Date: Mar 2005
Posts: 6
crt.Session.Disconnect hangs

Hi,

Ever since the first 5.0 beta up to the official version, I've been having problem with my scripts that works perfectly under version 4.1.

The worse problem I'm having is by using crt.Session.Disconnect .

The script will just hang there forever...

Did anyone observed that?

Thanks!

Last edited by cythraul; 06-17-2005 at 06:17 AM.
Reply With Quote
  #2  
Old 06-17-2005, 10:26 AM
Daniel's Avatar
Daniel Daniel is offline
VanDyke Developer
 
Join Date: Jan 2004
Posts: 53
Hi,

When you say the script hangs, do you mean that after a call to CRT.Session.Disconnect no other commands in the script are run, or is it the application itself that hangs?

Could you provide an example of a script that causes this behavior so I can try and reproduce the problem here?

Thanks,
Daniel
Reply With Quote
  #3  
Old 06-27-2005, 02:07 PM
cythraul's Avatar
cythraul cythraul is offline
Registered User
 
Join Date: Mar 2005
Posts: 6
Hi Daniel,

I'm sorry; I should have been more specific. It's the script execution that hangs.

I have opened a case (T200506170015) with support to whom (Jamie) I gave a script example.

But, the script does not matter. I can reproduce the problem from a plain script:

Code:
# $language = "VBScript"
# $interface = "1.0"
crt.Session.Disconnect
MsgBox "You will never see me!"
In this example, the MsgBox will never popup, but the session gets disconnected.

I guess I'm the only one with that problem; otherwise the forum would be soaring with questions about this.

Another problem that I have, which, curiously, has the exact inverse symptom is with the crt.Screen.WaitForString function. This one will not hang script execution has it should. Indeed, it's simply ignores the string it's should be waiting for and continue the script execution.

For example:

Code:
# $language = "VBScript"
# $interface = "1.0"
crt.Screen.WaitForString "Some string that will never appear"
MsgBox "You _will_ see me!"
Could it be related?

Thanks!
cyth
Reply With Quote
  #4  
Old 07-20-2005, 06:19 AM
reco reco is offline
Registered User
 
Join Date: Jul 2005
Posts: 1
Question crt.Session.Disconnect hangs

Hi cyth

You're not the only one having this problem. A few weeks ago I upgraded to version 5 and since then my scripts are hanging as well. Do you have any news when this bug will be fixed?

Thanks.
Reply With Quote
  #5  
Old 07-20-2005, 07:29 AM
bocks's Avatar
bocks bocks is offline
VanDyke Customer Support
 
Join Date: Jan 2004
Location: Albuquerque, NM
Posts: 184
Quote:
Originally Posted by reco
Hi cyth

You're not the only one having this problem. A few weeks ago I upgraded to version 5 and since then my scripts are hanging as well. Do you have any news when this bug will be fixed?

Thanks.
Hi reco,

This was bug was just recently fixed and verfied. While the fix will be included in the next maintenance release, people that are being affected by this bug should contact Support@vandyke.com so that we can get a patched version to you that will resolve this problem.

Thanks,

-bocks
Reply With Quote
  #6  
Old 01-19-2006, 12:17 AM
jack123 jack123 is offline
Registered User
 
Join Date: Nov 2005
Posts: 1
Is it possible to explore this Forum using similar keywords ?

I Can't realize that Is it possible to explore this Forum using similar keywords instead of exact words.
I searched for similar keywords in http://www.google.com and
http://www.boardexplorer.com and I found this Forum.
but inside the web site I could not find any intelligent search. you must know exact words to find related topics
any one who knows something?
Reply With Quote
  #7  
Old 01-19-2006, 10:51 AM
tnygren's Avatar
tnygren tnygren is offline
Registered User
 
Join Date: May 2005
Posts: 1,408
Hi Jack123,

We are aware of the limitations of the searching capablity of the forum and are currently looking in to an upgrade to the forum software.

There isn't a time frame for the implementation of this upgrade but we will let you know.

Could you tell me what information you were looking for so I can help?
__________________
Thanks,

Teresa

Teresa Nygren
Reply With Quote
  #8  
Old 05-26-2016, 04:02 PM
andymc andymc is offline
Registered User
 
Join Date: Sep 2015
Posts: 14
Same here

I am on

Version 7.2.5 (x64 build 550) - Official Release - June 5, 2014

I get session hangs a lot
Reply With Quote
  #9  
Old 05-26-2016, 04:23 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 972
SecureCRT tries to get things right, play nice, clean up after itself, etc., so when disconnecting from a remote host, SecureCRT tells the SSH server that it's going to shut things down and eventually disconnect, if it's alright with the server. SecureCRT kindly waits for an acknowledgement from the server that it's received all the data it needs to read, and it's "safe" to shut down the connection. Some servers just never reply with the "it's safe now" indication.

If you want SecureCRT to "just hang up, now!", you can configure it to do just that.

In Session Options, the SSH2 / Advanced category, enable the Force session channel to close on disconnect option.

See also:
https://forums.vandyke.com/showthread.php?t=11067
https://forums.vandyke.com/showthread.php?t=10754

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
  #10  
Old 05-26-2016, 08:18 PM
andymc andymc is offline
Registered User
 
Join Date: Sep 2015
Posts: 14
Thank you , really appreciated your help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:15 AM.