VanDyke Software Forums

Go Back   VanDyke Software Forums > SecureCRT 5.2/SecureFX 4.0 Beta
User Name
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 09-15-2006, 12:47 AM
Morham Morham is offline
Registered User
Join Date: Sep 2006
Posts: 2
Log file help

I am looking for help in generating log file names. I have a web page with telnet://x.x.x.x and ssh://x.x.x.x URL links to start my sessions.

Using the default sessions settings for the log file name (C:\Capture\%H-(%h-%m)-(%D-%M-%Y).txt) the file name gets created with %H = to x.x.x.x from the URL link.

Is there any way to get the hostname resolved instead of grabbing the IP address from the %1 variable in the URL link?

I have messed with the crt.session.log stuff in my login script but %H still equals the ip address.

Help a script newbie out if possible!!

Old 09-15-2006, 07:00 AM
Morham Morham is offline
Registered User
Join Date: Sep 2006
Posts: 2
I was thinking more about this.

If there is a script were I can issue the "get hostname" command after logging in and send the output to a variable, that variable could be used to create the log file name next.

Any ideas?

Thanks in advance!

P.S. Mods, if this thread should be under scripting, sorry!! Please move if so.

Last edited by Morham; 09-15-2006 at 07:04 AM.

Thread Tools
Display Modes

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 09:25 AM.

copyright 1995-2017 VanDyke Software, Inc.