|
我现在在一台windows上使用silktest,想得到一些在linux上的文件的相关信息。查了一些资料,希望能在windows上telnet到相应的linux系统。
代码如下:
[-] window DialogBox Notepad
[ ] const sCmdLine = "telnet 192.168.32.84"
[ ]
[-] main()
[ ] WINDOW w
[ ] w = Notepad
[ ]
[ ]
[ ] w.TypeKeys("root")
[ ] w.TypeKeys("<ENTER>")
运行的时候有错误,
[ ] Script main.t - 1 error
[ ] Machine: (local)
[ ] Started: 10:22:17PM on 17-Feb-2009
[ ] Elapsed: 0:00:05
[ ] Totals: 1 error, 0 warnings
[ ]
[ ] *** Error: Window '[DialogBox]' is not active
[ ] Occurred in Notepad.TypeKeys
[ ] Called from main at main.t(14)
该怎么解决呢,或者说还有什么办法可以达到目的,我刚刚接触Silktest,实在是不知道该如何下手。 |
|