开发者

spawn process in win XP

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 ".*:"开发者_Go百科
   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 .


Have you tried to launch your script with wish instead of tclsh? It might make a different.

Reference: http://wiki.tcl.tk/3548

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜