View Single Post
Old 09-29-2007, 07:49 PM
foggycactus foggycactus is offline
Registered User
Join Date: Sep 2007
Location: china
Posts: 3
Send a message via MSN to foggycactus
Red face

it's SecureCRT Version 5.5.2(build 475)
sorry,I don't know how to set log file while it run manually in the terminal window,but when I telnet to router,it's not empty,the code is blow:
Set a = crt.session.ConnectInTab("/telnet")
a.Session.LogFileName = CurrentPath &"\ftptest_"&t&".log"
a.Session.Log True

a.Screen.Send("Set interface ethernet/1 rxBPS "&maxdown&vbCr)
a.Screen.WaitForString "hiper%",1
a.Screen.Send("set interface ethernet/1 txBPS "&maxup&vbCr)
a.Screen.WaitForString "hiper%",1
a.Screen.Send("set cbt mDRRquantumTx "&mindown&vbCr)
a.Screen.WaitForString "hiper%",1
a.Screen.Send("set cbt mDRRquantum "&minup&vbCr)
a.Screen.WaitForString "hiper%",1
a.Screen.Send("sh r"&vbCr)
a.Screen.Send vbCr
crt.sleep 1000
a.Session.Log False
Reply With Quote