VanDyke Software Forums

VanDyke Software Forums (
-   Scripting (
-   -   python scripting - calling another python script / windows cmd.exe (

solari 02-08-2019 04:50 AM

python scripting - calling another python script / windows cmd.exe
Hi All,
How can I call another python script from a SecureCRT python script and return?
Alternatively, calling windows cmd.exe with arguments could solve the problem. If anyone could provide examples for any of the two mentioned issues, that would be great.
Thank you in advance!

ekoranyi 02-08-2019 09:34 AM

Hi solari,

To the best of my knowledge, there presently is not a way to run one script from another in SecureCRT.

I have added this thread to a feature request in our product enhancement database to add the ability to run multiple scripts in succession (call one script from another). Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct email notification, send an email to and include "Feature Request - Forum Thread #13395" in the subject line or use this form from the support page of our website.

In the meantime can you tell me a little more about your needs? I would like to see if we can suggest an alternative solution. What problem is it that you're trying to solve?

vanvinh 02-08-2019 07:01 PM

hi, I had been using secureCRT to run external python file and here is how:
subprocess.Popen(["py", '-3.5', ""], stdout=subprocess.PIPE).communicate()[0]
in which get_OTP is my python script. Hope it help!

vanvinh 02-08-2019 07:21 PM

you may need to look into subprocess library. There is a way to execute bash comaand on secureCRt

All times are GMT -6. The time now is 01:13 PM.