Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 09-11-2012, 05:06 AM
Martin G Martin G is offline
Registered User
Join Date: Sep 2012
Posts: 2
Question same hostname for ssh/telnet and external session

Dear VanDyke Support,

Since years I am using secureCRT and I am delighted with this piece of software.
Also at my new employer with about 1200 network devices.

My challenge:
I want to start an additional application in parallel to a ssh session.
This is already working under logon actions with a vbs logon script i. e.

Sub Main

Dim shell
Set shell = CreateObject("WScript.Shell")
shell.Run """C:\Program Files\Internet Explorer\IExplore.exe"""

End Sub

I have to create hundreds of scripts, for each session one script.
But I think it is possible to use the hostname used for the ssh or telnet session as a variable for the external session, maybe out of the session.ini file?
Or out of a hostlist file? Or......?


If yes, can you give me an example.

Reply With Quote
Old 09-11-2012, 07:46 AM
rtb rtb is offline
VanDyke Technical Support
Join Date: Aug 2008
Posts: 4,305
Hi Martin,

There are various methods you could use to accomplish your goal. One method would be to use the RemoteAddress property of the Session object. For example:
strHost = crt.Session.RemoteAddress
You could then use the variable strHost to open IE.

Does this help you accomplish your goal?

VanDyke Software
Technical Support
Reply With Quote
Old 09-13-2012, 05:41 AM
Martin G Martin G is offline
Registered User
Join Date: Sep 2012
Posts: 2

Thanks Todd,

It`s much easier I thought!

Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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