1

I am trying to create a automated ftp log in script in Expect/TCL.

This is my script

   spawn ftp 100.100.100.1 
   expect ".*:"
   send "username"
   expect ".*:"
   send "password"
   expect ".*>"

I get an error in Windows XP saying , it encountered an error and needs to close . But same thing work on a windows 2000 .

Can anyone guide me .

4

1 回答 1

0

您是否尝试过使用 wish 而不是 tclsh 来启动您的脚本?它可能会有所不同。

参考:http ://wiki.tcl.tk/3548

于 2009-10-13T15:25:51.560 回答