Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-29-2013, 04:19 PM
btobin btobin is offline
Registered User
 
Join Date: Sep 2013
Posts: 1
Log Switch Script Issue

I having an issue with a script I am trying to build. This script changes the name of the log file while logged in to a device. This part is successful. The problem is when I disconnect. When I reconnect or close out of SecureCRT and connect again the log file keeps the “_POST.log” in the name and in the Global and Session Options. By default, the Global and Session Options, it should be “directory\%S_%M%D%Y_%h%m%s.log”. How can I switch it back to the default when exiting a session or restarting SecureCRT?

Code:
#$language = "VBScript"
#$interface = "1.0"

crt.Screen.Synchronous = True

' This automatically generated script may need to be
' edited in order to work correctly.

Sub Main
      If crt.Session.Logging Then
         crt.Session.Log False
      End If

crt.Session.Log True
      crt.Session.LogFileName = "directory\%S_%M%D%Y_%h%m%s_POST.log"

End Sub
Reply With Quote
  #2  
Old 09-30-2013, 07:30 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi btobin,

Thanks for posting the problem you are seeing. I have received and responded to your email. I will post the resolution when we have reached one via email.
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
Reply

Tags
log , logging


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 10:36 PM.