-
大小: 15.95MB文件类型: .rar金币: 2下载: 3 次发布日期: 2023-06-19
- 语言: 其他
- 标签:
资源简介
linux环境使用必备,找了很久才找到的,不用破解,不用安装,直接解压就可以用,方便,CSDN上很多破解版都不支持secureFX,这个直接就可以用
代码片段和文件信息
# $language = “python“
# $interface = “1.0“
# AddCommentToLogFile.py
#
# Description:
# This example script allows you to add a custom line of text to your
# SecureCRT log file. The user will be prompted for the text to add
# to the log file; logging will be stopped; the text provided by the
# user will be appended to the log file; then SecureCRT logging will
# be restarted.
#
# This method only works with connections associated with a Session
# configuration in which a log file is specified.
#
# Demonstrates:
# - How to prompt for user input using the SecureCRT InputBox() function.
# - How to access Session.LogFileName to determine the log file name
# stored for the current session.
# - How to use the Session.Logging property to determine if logging
# is currently active.
# - How to use the Python replace() method to substitute substrings
# within an existing string.
# - How to use the Python file object to open an existing text file
# and append data.
#
import datetime
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def Main():
# Make this script tab safe
tab = crt.GetscriptTab()
if tab.Session.LogFileName == ““ :
crt.Dialog.MessageBox(“Error.\n\n\
This script requires a session configuration in which a \
log file is defined.\n\n\
Specify a Log file name in Session Options ““Terminal / \
Log File““ and run this script again.“)
return
# 1. Stop logging to free up the log file for writing by our script.
tab.Session.Log(False)
# 2. Prompt the user for the text to add to the log file.
now = str(datetime.datetime.now())
textToAdd = crt.Dialog.Prompt(
“Add comment to log file (use \\r\\n to separate multiple lines):\n\n\
Comment will be prefaced with current timestamp:\n“ + now + “\n“
“Add Comment To SecureCRT Log File\n“ + now + “: “)
# Prompt returns ““ if the user cancels
if textToAdd == ““:
return
# 3. Write data to the file. If you want to include a newline you must
# concatenate a \n character to the end of the line. Note also that you can
# wrap the comment with certain markers and not require the user to enter
# these markers when prompted. Although the prompt function only allows
# one line per entry you can set up a tag that can be used to represent
# a new line such as “\r\n“ and then replace this tag with a \n as we
# have done in this example:
textToAdd = “\n/********************************************/ \n\
* “ + now + “: \n* “ + textToAdd.replace(“\r\n“ “\n* “) + “\n\
/********************************************/ \n“
WriteToFile(tab.Session.LogFileName textToAdd)
# 4. Start up logging again making sure we append rather than overwrite.
tab.Session.Log(True True)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def WriteToFile(filename data):
# filename: Full path to file
# data: data to be written to the
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 708 2013-06-14 22:00 SecureCRSecureFXPortable\!)使用必读.txt
文件 10188 2013-04-24 11:35 SecureCRSecureFXPortable\App\VanDyke Clients\SecureCRT_HISTORY.TXT
文件 12634 2013-04-23 14:45 SecureCRSecureFXPortable\App\VanDyke Clients\SecureCRT_README.TXT
文件 6011 2013-04-03 10:03 SecureCRSecureFXPortable\App\VanDyke Clients\SecureCRT_SecureFX_EULA.TXT
文件 5756 2013-04-24 14:19 SecureCRSecureFXPortable\App\VanDyke Clients\SecureFX_History.txt
文件 11658 2013-04-23 14:46 SecureCRSecureFXPortable\App\VanDyke Clients\SecureFX_Readme.txt
文件 585 2013-06-14 22:00 SecureCRSecureFXPortable\App\AppInfo\appinfo.ini
文件 162 2013-06-14 22:05 SecureCRSecureFXPortable\SecureCRTPortable.ini
文件 160 2013-06-14 22:05 SecureCRSecureFXPortable\SecureFXPortable.ini
文件 777584 2013-04-25 18:11 SecureCRSecureFXPortable\App\VanDyke Clients\Activator.exe
文件 918392 2013-05-26 21:46 SecureCRSecureFXPortable\App\VanDyke Clients\LicenseHelper.exe
文件 4440944 2013-05-26 21:46 SecureCRSecureFXPortable\App\VanDyke Clients\SecureCRT.exe
文件 99320 2013-06-14 22:05 SecureCRSecureFXPortable\SecureCRTPortable.exe
文件 5141872 2013-04-25 18:11 SecureCRSecureFXPortable\App\VanDyke Clients\SecureFX.exe
文件 99342 2013-06-14 22:05 SecureCRSecureFXPortable\SecureFXPortable.exe
文件 4131176 2013-04-25 18:11 SecureCRSecureFXPortable\App\VanDyke Clients\sfxcl.exe
文件 1827328 2008-12-16 12:29 SecureCRSecureFXPortable\App\VanDyke Clients\ccme_ba
文件 1592704 2013-04-25 18:11 SecureCRSecureFXPortable\App\VanDyke Clients\ClientConfigUI71U.dll
文件 478576 2013-04-25 18:11 SecureCRSecureFXPortable\App\VanDyke Clients\CommonUI71U.dll
文件 955776 2013-04-25 18:11 SecureCRSecureFXPortable\App\VanDyke Clients\ConnectDialog71U.dll
文件 1891840 2008-12-16 12:29 SecureCRSecureFXPortable\App\VanDyke Clients\cryptocme2.dll
文件 613728 2013-04-25 18:11 SecureCRSecureFXPortable\App\VanDyke Clients\FTP.dll
文件 625000 2013-04-25 18:11 SecureCRSecureFXPortable\App\VanDyke Clients\FTPSSL.dll
文件 834936 2013-04-25 18:11 SecureCRSecureFXPortable\App\VanDyke Clients\LicenseUI71U.dll
文件 55120 2011-08-15 09:47 SecureCRSecureFXPortable\App\VanDyke Clients\mfc100enu.dll
文件 5601616 2011-08-15 09:47 SecureCRSecureFXPortable\App\VanDyke Clients\mfc100u.dll
文件 608080 2011-08-15 09:47 SecureCRSecureFXPortable\App\VanDyke Clients\msvcp100.dll
文件 1061376 2007-10-18 14:15 SecureCRSecureFXPortable\App\VanDyke Clients\msvcp80.dll
文件 829264 2011-08-15 09:47 SecureCRSecureFXPortable\App\VanDyke Clients\msvcr100.dll
文件 796672 2007-10-18 14:15 SecureCRSecureFXPortable\App\VanDyke Clients\msvcr80.dll
............此处省略77个文件信息
- 上一篇:操作系统——内核与设计原理 PDF
- 下一篇:TIny4412 uboot
评论
共有 条评论