Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 25 of 68
Search took 0.00 seconds.
Search: Posts Made By: Tonatiuh
Forum: Scripting 08-07-2019, 09:30 AM
Replies: 0
Views: 445
Posted By Tonatiuh
MessageBox executed first than the previous WaitForString

This is my python script:


# $language = "python"
# $interface = "1.0"

import SecureCRT
import os
import sys
Forum: SecureCRT on the Mac 01-04-2018, 12:23 PM
Replies: 3
Views: 3,464
Posted By Tonatiuh
I will try with commands that you showed. I...

I will try with commands that you showed.

I would have preferred that this app would show the "open new window" option, as many other Mac apps.

Thank you.
Forum: SecureCRT on the Mac 01-04-2018, 11:54 AM
Replies: 3
Views: 3,464
Posted By Tonatiuh
Multiple CRT windows on Mac

How can I open Multiple CRT windows on Mac?

I use to "group" my sessions in different windows. One CRT window for servers in Datacenter 1 or Production Servers, other CRT window for Datacenter 2...
Forum: Scripting 01-13-2015, 08:09 PM
Replies: 16
Views: 6,099
Posted By Tonatiuh
Hi, Yes, it require credentials, but how to...

Hi,

Yes, it require credentials, but how to give it that? The line just after the hanging ling, is the "mailMsg.login(..." where I provide the credentials, but the script never reach that line. It...
Forum: Scripting 01-13-2015, 01:46 PM
Replies: 16
Views: 6,099
Posted By Tonatiuh
Hi, The import is working know, but I the...

Hi,

The import is working know, but I the script hangs apparently in the "smtplib.SMTP("smtp.gmail.com", 465)". The lines above this line excute properly.

The script does not return any error,...
Forum: Scripting 01-12-2015, 05:39 PM
Replies: 16
Views: 6,099
Posted By Tonatiuh
If the matter of this is the different versions,...

If the matter of this is the different versions, is not better to install exactly the same version that comes with SecureCRT? Which one is? 2.6.x?

I have Win 64-bits and installed Python for Win...
Forum: Scripting 01-12-2015, 01:55 PM
Replies: 16
Views: 6,099
Posted By Tonatiuh
I have uninstalled Python 2.7.9 and have...

I have uninstalled Python 2.7.9 and have installed Python 2.6.6.

The error message is exactly the same.

If I change the line (in the script):
if "C:\\Python26" not in sys.path:...
Forum: Scripting 01-12-2015, 01:33 PM
Replies: 16
Views: 6,099
Posted By Tonatiuh
I was reluctant to think that it was not solved...

I was reluctant to think that it was not solved in a better manner for today. That's why sent this message (looking for a solution, not for a workaround).

Ok. I have to downgrade the Windows...
Forum: Scripting 01-11-2015, 10:41 AM
Replies: 16
Views: 6,099
Posted By Tonatiuh
I have the same problem with SecureCRT 7.3.0 and...

I have the same problem with SecureCRT 7.3.0 and Python 2.7.6: "Error: No module named _socket".

But my problem only appears when I run the script in Windows. The script runs well in Mac OSX.
...
Forum: Scripting 01-06-2015, 10:07 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
Bingo! It is working now. I deleted the...

Bingo! It is working now.

I deleted the verification of echoed line and the script still works, and MUCH faster.

I think that the silver bullet to make it work, was the deletion of the "\r" and...
Forum: Scripting 12-30-2014, 01:15 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
Hi, I will have to wait until the scripting...

Hi,

I will have to wait until the scripting guru be available.

No matter what is the source of the problem, if I cannot use this scripting feature, SecureCRT is almost the same than any other...
Forum: Scripting 12-29-2014, 10:17 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
The file was first created on Windows. My...

The file was first created on Windows. My intention passing my scripts to Python, is to create and execute alternativelly scripts in Windows and Mac OS X, regardless where they were created nor where...
Forum: Scripting 12-27-2014, 07:52 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
Now the behavior is another. I have modified the...

Now the behavior is another. I have modified the script to send the line less the last character.

Now, there are no added blank lines, but the script does not send anything (line by line). When I...
Forum: Scripting 12-27-2014, 07:11 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
I have attached my last version of the script and...

I have attached my last version of the script and a screenchot from the output.

It sends several blank lines which cause error to interpret them.

I have seen that it seems to send...
Forum: Scripting 12-27-2014, 12:44 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
Hi, The script is changing as I am an still...

Hi,

The script is changing as I am an still doing tests, that's why you just did not see this variable before.

Regards,
Forum: Scripting 12-22-2014, 07:23 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
Other question: The os.getcwd() returns only a...

Other question: The os.getcwd() returns only a "/", and not the current directory (where te script is located).

How to get the current directory?
Forum: Scripting 12-22-2014, 07:06 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
Ok. It works, but not exactly in the same way it...

Ok. It works, but not exactly in the same way it worked on vbscript. I had to terminate my SQL sentence with "/" than with ";".

It seems to have problems with "blank" lines.

There are things...
Forum: Scripting 12-22-2014, 05:10 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
I have imported the os and changed the line where...

I have imported the os and changed the line where I reference to the argument and I receive another error. I attached my current python script and the screenshot with the error.
Forum: Scripting 12-22-2014, 03:39 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
The scripts comes here.

The scripts comes here.
Forum: Scripting 12-22-2014, 03:36 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
I have made a complete test case. I am...

I have made a complete test case.

I am running this form a "Button"

I have attached the button config, the script and the file to send

I hope this can give you a complete picture.
...
Forum: Scripting 12-22-2014, 11:16 AM
Replies: 24
Views: 6,723
Posted By Tonatiuh
What do you mean with "That's due to these lines...

What do you mean with "That's due to these lines (lines 11-13 of attached script):"?

Is there an error in those lines?

The strFile is the argument containing the name of the SQL script to...
Forum: Scripting 12-22-2014, 10:16 AM
Replies: 24
Views: 6,723
Posted By Tonatiuh
The syntax errors are solved. They were due to...

The syntax errors are solved. They were due to the Mac Text Editor, which change some characters.

Now the only one problem is that when I run the script it only shows a message:...
Forum: Scripting 12-20-2014, 05:17 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
Here is the file

Here is the file
Forum: Scripting 12-20-2014, 05:14 PM
Replies: 24
Views: 6,723
Posted By Tonatiuh
Paython script Read and execute file

Python script on Mac.

I am trying to make a script on python on Mac, to read and execute a file into SecureCRT.

The script returns "Error: invalid syntax" in the line:...
Forum: Scripting 12-15-2014, 10:47 AM
Replies: 9
Views: 6,997
Posted By Tonatiuh
Thank you for the detailed responses. They are...

Thank you for the detailed responses. They are very valuable.

The last one, you have a lot of vbscript for SecureCRT examples in your wab pages. This has been the fastest and easy way to learn how...
Showing results 1 to 25 of 68

 
Forum Jump

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