Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 13 of 13
Search took 0.00 seconds.
Search: Posts Made By: garrettwilliams
Forum: Scripting 03-12-2021, 08:15 AM
Replies: 3
Views: 391
Posted By garrettwilliams
Hey Cameron, Thanks for the quick reply! I...

Hey Cameron,

Thanks for the quick reply! I was able to work this out on my own. Python virtual environments are a real handy way of managing different Python versions, along with external modules....
Forum: Scripting 03-11-2021, 12:39 PM
Replies: 3
Views: 391
Posted By garrettwilliams
Virtual Environments?

Hello,

Is there a way to direct SecureCRT 9.0 to run Python3 scripts in a virtual environment?
Forum: Scripting 01-21-2021, 08:03 AM
Replies: 5
Views: 543
Posted By garrettwilliams
Thanks for the response! We actually got it...

Thanks for the response!

We actually got it sorted out. One of the modules I had built that we were importing was missing this:


# $language = "python3"
# $interface = "1.0"

Looks like he...
Forum: Scripting 01-19-2021, 02:44 PM
Replies: 5
Views: 543
Posted By garrettwilliams
Hey Brenda, Yes, that's correct. It works...

Hey Brenda,

Yes, that's correct. It works for me without issue. He also did follow the steps in that best practices post.

I'm not aware of any difference in our environment that would...
Forum: Scripting 01-19-2021, 08:59 AM
Replies: 5
Views: 543
Posted By garrettwilliams
trouble importing external modules (SCRT 9.0)

Hey all,

I've been using SecureCRT 9.0 and writing some pretty handy Python3 scripts for a few weeks now. The other day, I shared one of my scripts with a coworker, and they were unable to get...
Forum: Scripting 01-07-2021, 12:14 PM
Replies: 2
Views: 657
Posted By garrettwilliams
Thanks! Extremely helpful.

Thanks! Extremely helpful.
Forum: Scripting 12-31-2020, 07:37 AM
Replies: 2
Views: 657
Posted By garrettwilliams
Python 3 - importing local modules

Hey all,

I'm trying to make a script I wrote in Python 3 to be more modular - i.e. I want to store some of my functions in a separate file. For instance:

def find_prompt():
screenrow =...
Forum: Scripting 12-30-2020, 07:27 AM
Replies: 7
Views: 740
Posted By garrettwilliams
For anyone interested in the final solution, I...

For anyone interested in the final solution, I used PyQt5 instead of Tkinter, seems to work just fine. Thanks for the help!


# $language = "python3"
# $interface = "1.0"


import os
import...
Forum: Scripting 12-29-2020, 12:44 PM
Replies: 7
Views: 740
Posted By garrettwilliams
I ran into a gotcha with tkinter. I can issue an...

I ran into a gotcha with tkinter. I can issue an 'askdirectory' command. (It populates a directory search dialog, saves the directory you choose into a variable). This will work once.

The second...
Forum: Scripting 12-29-2020, 10:45 AM
Replies: 3
Views: 476
Posted By garrettwilliams
Seems very obvious now, thanks so much for the...

Seems very obvious now, thanks so much for the quick reply.

Happy Holidays.
Forum: Scripting 12-28-2020, 02:47 PM
Replies: 3
Views: 476
Posted By garrettwilliams
screen.readstring/get --> Unable to position start?

Hey all,

I feel like I must be missing something simple. I'm trying to put together a simple script to pull the running config off a device and drop it into a text file line by line.
I know...
Forum: Scripting 12-28-2020, 09:23 AM
Replies: 7
Views: 740
Posted By garrettwilliams
For anyone looking for the same thing: The...

For anyone looking for the same thing:

The beta version, 9.0, supports using your local python3 interpreter (instead of the built into securecrt 2.7).

Using that, you can import tkinter, or...
Forum: Scripting 12-17-2020, 03:10 PM
Replies: 7
Views: 740
Posted By garrettwilliams
Prompt for file save location

Hey folks,

I'm trying to write a script that snags output from a shell (like a show runn or whatever) and save it to a file of my choosing. Easy enough to point the output_dir where you need...
Showing results 1 to 13 of 13

 
Forum Jump

All times are GMT -6. The time now is 12:04 PM.