Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Notices

Showing results 1 to 25 of 75
Search took 0.01 seconds.
Search: Posts Made By: gregg
Forum: General 09-15-2021, 10:01 AM
Replies: 0
Views: 2,241
Posted By gregg
Goodbye Vandyke Forums

I will miss lurking here.
Forum: General 09-01-2021, 09:26 AM
Replies: 3
Views: 1,474
Posted By gregg
Before connecting to the remote host, you can...

Before connecting to the remote host, you can turn on File -> Trace Options to see some additional messages related to ssh.

And then also try your failing command with trace options on.

It...
Forum: Scripting 08-30-2021, 11:26 AM
Replies: 1
Views: 2,447
Posted By gregg
I think one way to accomplish this is to capture...

I think one way to accomplish this is to capture the current name, set new name, start log, reset name.


# $language = "Python"
# $interface = "1.0"

s = crt.Session
config = s.Config...
Forum: General 08-18-2021, 04:32 PM
Replies: 1
Views: 926
Posted By gregg
There is a "%S" variable for session name noted...

There is a "%S" variable for session name noted at the bottom of the Session's options Log File dialog. I think that will work for what you mean by "connection name"

You may also want to review...
Forum: General 08-16-2021, 11:15 AM
Replies: 2
Views: 1,260
Posted By gregg
i've recently been switching to Cascadia Mono...

i've recently been switching to Cascadia Mono font (Mono because sCRT does not support ligatures) and it has been better than some of what I had been using. Though superscript does seem a bit...
Forum: Scripting 08-07-2021, 05:03 PM
Replies: 19
Views: 5,302
Posted By gregg
If you're more keen to use Python3 in scrt (I...

If you're more keen to use Python3 in scrt (I would be), looks like pywin32 can handle the COM objects to do the same kind of thing.

My quick test:

# $language = "Python3"
# $interface = "1.0"...
Forum: Scripting 08-06-2021, 01:44 PM
Replies: 3
Views: 1,588
Posted By gregg
The limiting speed factor here is the...

The limiting speed factor here is the communication channel to the remote device. The difference between a switch/case and if/else will be greatly overshadowed by the communication.

A switch/case...
Forum: Scripting 08-06-2021, 12:31 AM
Replies: 19
Views: 5,302
Posted By gregg
This was my experience, yes. I just tried it...

This was my experience, yes. I just tried it again for sanity, scrt open on the left side of my screen and excel with an open workbook on the right. Running the script I saw the values pop up in...
Forum: Scripting 08-03-2021, 01:23 PM
Replies: 3
Views: 1,588
Posted By gregg
Hiya Rhudi- haha- i may or maynot work...

Hiya Rhudi-



haha- i may or maynot work for Cisco, and i rarely if ever connect to networking devices.

Anyway, my critiques are these.

The code presented is too monolithic and should...
Forum: Scripting 08-03-2021, 11:09 AM
Replies: 19
Views: 5,302
Posted By gregg
Hello- I might be missing something, but...

Hello-

I might be missing something, but this script will update a cell in an Open excel sheet with new data. I think the difference is GetObject vs CreateObject


Option Explicit

REM On...
Forum: Scripting 07-31-2021, 02:22 AM
Replies: 3
Views: 1,096
Posted By gregg
Hi Bjoern- So, it also looks like readstring...

Hi Bjoern-

So, it also looks like readstring reads until the characters defined in the call, in your case

crt.Screen.ReadString(":~#")

which is part of your command line prompt and so on the...
Forum: Scripting 07-30-2021, 02:05 PM
Replies: 3
Views: 1,096
Posted By gregg
Hi, Try using: Screen.IgnoreEscape =...

Hi,

Try using:

Screen.IgnoreEscape = True

From the docs:

By default, ReadString will capture all data received from the remote, including escape sequences. To enable or disable the...
Forum: General 07-30-2021, 12:31 AM
Replies: 4
Views: 1,665
Posted By gregg
I think I finally re-discovered what this was/is...

I think I finally re-discovered what this was/is (for me).

There are a couple shared accounts I occasionally log into and they have zsh set as their default shell (I typically use bash)

Pasting...
Forum: General 07-19-2021, 12:59 PM
Replies: 2
Views: 1,855
Posted By gregg
Possibly the registry? ...

Possibly the registry?

Computer\HKEY_CURRENT_USER\SOFTWARE\VanDyke\SecureCRT\Config Path

at least, that's where mine seems to be which contains the file Global.ini

erm, sorry. I'm running...
Forum: General 06-23-2021, 08:43 PM
Replies: 1
Views: 927
Posted By gregg
I do this. Use /F <foldername> when...

I do this.

Use /F <foldername> when starting SecureCRT.

From the help:
Forum: Scripting 06-05-2021, 11:23 AM
Replies: 2
Views: 1,338
Posted By gregg
This should be an adequate replacement for the...

This should be an adequate replacement for the mentioned script.


# $language = "Python3"
# $interface = "1.0"

# Script to open a text file and read it line by
# line to a server.
...
Forum: General 06-04-2021, 09:51 PM
Replies: 4
Views: 1,665
Posted By gregg
oh, this is interesting. I noticed it, too, but...

oh, this is interesting. I noticed it, too, but thought it was just a weird glitch.
i was busy at the time and didn't think much about it as it seemed to be just cosmetic and didn't seem to affect...
Forum: General 05-27-2021, 11:04 AM
Replies: 1
Views: 1,891
Posted By gregg
Allow % variables in more places

Hello!

The variables available in some places like log file naming (%H=hostname, %S=session name, etc, etc) would be nice to have in other locations.

1. Local Shell; but first this needs to...
Forum: Scripting 10-02-2020, 01:05 PM
Replies: 3
Views: 3,065
Posted By gregg
My question was less about "being able to", and...

My question was less about "being able to", and more about "any reason not to always use py3".

I did do testing with py3 against some pre-releases of 8.8 (now 9) and worked for me.

It sounds...
Forum: Scripting 10-01-2020, 01:05 PM
Replies: 3
Views: 3,065
Posted By gregg
Python3 yay (vs. embedded question)

I'm excited about the new python 3 support (among other coming enhancements)! Though I am curious, is there any downside/limitation to using py3 since it's not the "embedded" version?

Keeping the...
Forum: Scripting 08-09-2020, 03:13 PM
Replies: 7
Views: 3,929
Posted By gregg
Hi- I can think of 2 possible work-arounds. ...

Hi-

I can think of 2 possible work-arounds.

1. Create a second script that clones the current session 3 times when executed and in Session->Logon Actions->Logon Script set it to this new...
Forum: Scripting 07-24-2020, 04:52 PM
Replies: 6
Views: 5,060
Posted By gregg
I was able to get yaml working in Windows 10 x64,...

I was able to get yaml working in Windows 10 x64, SecureCRT v8.7.1 by downloading the yaml source and setting the path to it.

Specifically:
From https://pyyaml.org/wiki/PyYAML I downloaded the...
Forum: Secure Shell 08-27-2019, 10:18 AM
Replies: 4
Views: 12,885
Posted By gregg
I feel like I'm seeing this "The semaphore...

I feel like I'm seeing this "The semaphore timeout period has expired." frequently since upgrading.

I'm having difficulty narrowing down the issue because I was previously running WinXP and...
Forum: Scripting 08-27-2019, 09:50 AM
Replies: 3
Views: 2,870
Posted By gregg
As a point of reference, on v8.5.3 (64-bit...

As a point of reference, on v8.5.3 (64-bit version) I got 880001 with no overflow error.
Forum: Scripting 07-06-2019, 10:47 AM
Replies: 2
Views: 2,932
Posted By gregg
Try either: IllegalChars ='|/\\<>:*"' ...

Try either:

IllegalChars ='|/\\<>:*"'

Or:

IllegalChars ="|/\\<>:*\""

In Python, certain string literals need to be escaped, such as \ and "
Showing results 1 to 25 of 75

 
Forum Jump

All times are GMT -6. The time now is 01:05 AM.