Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 02-17-2016, 01:41 PM
jclark1978 jclark1978 is offline
Registered User
Join Date: Feb 2016
Posts: 1
Question Seperate logfile per cloned session

At work we use a linux jumpbox to access multiple hosts. To login to the jumpbox we need to use an RSA passcode but once we SSH to a host from there it's a static password to allow for faster connectivity.

I have a script which allows me to
1. Clone the jumpbox session,
2. Prompts for a host name
3. SSH to a host,
4. Rename the tab with the hostname

It's working great and is a huge time saver.

As my job demands accessing multiple hosts simultaneously I'm typically logged into multiple hosts in multiple tabs simultaneously and would like to have a separate log file per cloned session with the name of the variable %hostname% (shown in step 2 above).

I've been able to change the log file name using "crt.Session.LogFileName = logfile" with the variable %hostname% as I've seen in other posts but this only seems to work the first time I run it. Anyone else have any experience with generating unique logfiles in cloned sessions?


~ Jeff
Reply With Quote

cloned session , logfilename , tabs

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:12 AM.