View Single Post
Old 10-27-2020, 03:08 PM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,544
Hi Rhudi,

I still cannot replicate your results. Are you sure you are going into the correct Case statement with the log each line configuration?

Here were my steps which is a simplified version of what I understand your objective to be.

My script is:
Set objTab = crt.GetScriptTab
Set objConfig = objTab.Session.Config
objConfig.SetOption "Custom Log Message Each Line", "%h:%m:%s | "
objTab.Session.LogFileName =  "C:\Temp\Ubuntu_%Y-%M-%D.%h.%m.log"
  • From CMD run SecureCRT /Script "path_to_script" /S "MyUbuntuSession"
  • So now I am authenticated and sitting at the prompt, I enable Log Session from File menu
  • Run a few commands
  • Choose Log Session again to stop logging
  • Open my log file named Ubuntu_2020-10-27.12.52.log and this is the contents:
12:52:16 | user@ubuntu:~$ uptime
12:52:16 | 13:52:16 up 17 days, 22:11, 2 users, load average: 0.06, 0.25, 0.20
12:52:17 | user@ubuntu:~$ pwd
12:52:17 | /home/vdt-csg

I have tested this both in the official release and v8.3.4 and it works in both versions.

You will need to post explicit steps and the entire script with sensitive data redacted or send it to with Attn Brenda - Forum Thread #14326 in the subject line.

VanDyke Software
Technical Support
(505) 332-5730