Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-29-2007, 03:44 AM
foggycactus foggycactus is offline
Registered User
 
Join Date: Sep 2007
Location: china
Posts: 3
Send a message via MSN to foggycactus
can't telnet to winxp logging?

hi,
For some reason when I try to close the log file in script it generates an empty file.
I am using the following code:

Set b = crt.session.ConnectInTab("/telnet 192.168.16.10 23")
b.Screen.Send vbCr
b.Screen.Send "Administrator"&vbCr
b.Screen.Send vbCr

{do something else............}

b.activate
b.screen.Synchronous = True
b.Session.LogFileName = "D:\1.log"
b.Session.Log True,True

b.screen.waitforstring ">",1
b.Screen.Send vbCr
b.Screen.Send("ftp 200.200.200.120"&vbCr)
b.Screen.Send("test"&vbCr)
b.Screen.Send("test"&vbCr)

b.screen.WaitForString "ftp>",2
b.Screen.Send("get "&downfile&vbCr)
b.screen.WaitForString "ftp>",2
b.Screen.Send("get "&upfile&vbCr)
b.screen.WaitForString "ftp>",20
b.Screen.Send("by"&vbCr)

b.screen.waitforstring ">",10
b.Screen.Send vbCr
crt.sleep 20000
b.Session.Log False
b.screen.Synchronous = False

can anyone help me?thanks for your help.
Reply With Quote
 


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 11:24 AM.