Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 25 of 110
Search took 0.01 seconds.
Search: Posts Made By: rleon
Forum: SecureCRT on the Mac 04-17-2019, 01:13 PM
Replies: 3
Views: 2,765
Posted By rleon
Sorry to dig up an old thread but something is...

Sorry to dig up an old thread but something is wrong with the code.

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

def main():
crt.Screen.Synchronous = False
with...
Forum: Scripting 02-04-2019, 11:34 AM
Replies: 5
Views: 1,103
Posted By rleon
I figured out what the issue is but i don't know...

I figured out what the issue is but i don't know how to fix it .


In my top block

crt.Screen.WaitForString("nfs]# ")
crt.Screen.Send("ssh...
Forum: Scripting 02-04-2019, 11:13 AM
Replies: 5
Views: 1,103
Posted By rleon
Thanks i changed the code to ...

Thanks

i changed the code to


szOutput = crt.Screen.WaitForStrings(["# ","word:","mbp:nfs #"], 3)

And it still doesnt work

What i noticed was if i cat a file .. it does...
Forum: Scripting 02-04-2019, 10:13 AM
Replies: 5
Views: 1,103
Posted By rleon
Help with timeout

hi

my script is pretty much working except for the time out

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

def main():
crt.Screen.Synchronous = True
with...
Forum: Scripting 02-02-2019, 12:02 PM
Replies: 4
Views: 1,013
Posted By rleon
I took the script and stripped out some stuff...

I took the script and stripped out some stuff made sure the indents were ok.

when i run it .. it doesnt fall into any of the if statements

Any help would be appreciated.

ssh root@test
ssh...
Forum: Scripting 02-02-2019, 08:25 AM
Replies: 4
Views: 1,013
Posted By rleon
Thank you i tried that I replaced ...

Thank you i tried that

I replaced

With my promit

strJumpHostPrompt = "# "

And I get the error ..
Forum: Scripting 02-01-2019, 01:00 PM
Replies: 4
Views: 1,013
Posted By rleon
try different passwords

I have this script that works great to do different things

but lately there were some hosts that have old passwords .,. pass2 and pas3

I trying to add a simple way for it to try pass2 and...
Forum: SecureCRT on the Mac 09-12-2018, 10:36 AM
Replies: 3
Views: 2,765
Posted By rleon
script to SSH to host

:cool:def main():
crt.Screen.Synchronous = False
with open('/Users/rleon16/hosts') as hosts_:
for host in hosts_:
crt.Screen.WaitForString("working # ")
...
Forum: SecureCRT on the Mac 02-28-2018, 10:38 AM
Replies: 1
Views: 2,773
Posted By rleon
Where are the toolbar files located?

I accidently deleted my tool bar.

I can recover just need to know where and what the file name is.

I am running mac version 8.3.1./
Forum: SecureCRT on the Mac 08-23-2017, 03:53 PM
Replies: 3
Views: 3,584
Posted By rleon
This is on my MAC - I want to make sure i get my...

This is on my MAC - I want to make sure i get my local prompt before I execute.

crt.Screen.WaitForString("working # ")


I didn't realize that it was reading uptime as variable .. uptime is a...
Forum: SecureCRT on the Mac 07-05-2017, 01:32 PM
Replies: 3
Views: 3,584
Posted By rleon
run ssh command

I am trying to ssh in .. and run the uptime command .. in my loop.

I am missing something i cant run the uptime command or any other strings.

def main():
crt.Screen.Synchronous =...
Forum: SecureCRT on the Mac 04-13-2017, 12:49 PM
Replies: 3
Views: 3,433
Posted By rleon
that did it .. thank you !

that did it .. thank you !
Forum: SecureCRT on the Mac 04-13-2017, 10:26 AM
Replies: 3
Views: 3,433
Posted By rleon
Shortcuts to Sessions

Hi in trying to do the following -

1. Have a 2nd CRT instance in my apps dock that opens a new crt window each time i click it.

If I cant do that can I save a shortcut to a specific session...
Forum: Scripting 03-08-2017, 02:06 PM
Replies: 4
Views: 2,924
Posted By rleon
Hi ekoranyi That is correct I tried...

Hi ekoranyi

That is correct

I tried elsif if .. if not , == true and nothing works.

if objNewTab.Screen.WaitForString("# ") :
Forum: Scripting 03-07-2017, 09:24 AM
Replies: 4
Views: 2,924
Posted By rleon
if statement help ,

Running the latest secureCRT on MAC.


objNewTab.Screen.WaitForString("# ")
objNewTab.Screen.Send("ssh " + host + '\r')
...
Forum: Scripting 02-21-2017, 12:32 PM
Replies: 1
Views: 3,804
Posted By rleon
pop up with input in python

Hi

I need a pop up box that will list
a b c d e

then prompt for one of the options -
if i input a b c d e
continue and assign it to a variable to use during the entire loop.

if it...
Forum: Scripting 08-26-2016, 10:14 AM
Replies: 7
Views: 3,358
Posted By rleon
It has an LF in the dialog box. But I dont...

It has an LF in the dialog box.

But I dont see any lines or characters returns.


# cat -vet hosts
10.255.43.12$
10.255.43.13$
10.255.43.14$
10.255.43.15$
Forum: Scripting 08-25-2016, 03:19 PM
Replies: 7
Views: 3,358
Posted By rleon
hmmm I checked that .. No extra characters.

hmmm I checked that ..

No extra characters.
Forum: Scripting 08-25-2016, 02:18 PM
Replies: 7
Views: 3,358
Posted By rleon
Hi Brenda lol sorry I wasnt clear ...

Hi Brenda

lol sorry I wasnt clear

crt.Screen.Send("scp -p -r -oStrictHostKeyChecking=no ssh_client.tar root@" + host + ":/root" + '\r')

I tried what you suggested but I get an error now.
...
Forum: Scripting 08-23-2016, 02:07 PM
Replies: 7
Views: 3,358
Posted By rleon
send scp command with path .

How do I send an scp command?

I cant seem to be able to figure out how to do the characters after the host.

scp -p -r myfile root@host:/path/to/dir/

crt.Screen.Send("ssh...
Forum: Scripting 08-11-2016, 02:20 PM
Replies: 1
Views: 2,735
Posted By rleon
send cmd to new tab

Im trying to run this from my mac though a local session.

I have a list of hostnames in /Users/rleon/Documents/hosts.5

For each hostname in the list I want to kick off a new session in a new...
Forum: Scripting 07-26-2016, 10:05 AM
Replies: 7
Views: 4,919
Posted By rleon
Ok .. this works no errors .. but it only gets...

Ok .. this works no errors .. but it only gets the first host in the list.

seems like its waiting for something but I cant figure out what it is waiting for. Any suggestions?

I would also like...
Forum: Scripting 07-26-2016, 09:12 AM
Replies: 9
Views: 6,302
Posted By rleon
ok .. I cant get the python script to loop...

ok .. I cant get the python script to loop through a list of hosts and run commands, so my goal was to wrap a secure crt python script into a shell script in on my mac. I can shell script the loop...
Forum: Scripting 07-25-2016, 09:26 AM
Replies: 9
Views: 6,302
Posted By rleon
I dont need to open a new session .. Just run it...

I dont need to open a new session .. Just run it the script from the current session.

However :
/Applications/SecureCRT.app/contents/MacOS/SecureCRT /Script "Path_to_Script.py"

Opens a new...
Forum: Scripting 07-22-2016, 02:24 PM
Replies: 9
Views: 6,302
Posted By rleon
Thanks that worked .. is there an option...

Thanks that worked ..

is there an option that doesnt force a new window to be opened? Ideally I would like to run it from the current session.
Showing results 1 to 25 of 110

 
Forum Jump

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