开发者

spawn process in win XP

开发者 https://www.devze.com 2022-12-08 02:43 出处:网络
I am trying to create a automated ftp log in script in Expect/TCL. This is my script spawn ftp 100.100.100.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 ".*:"开发者_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

精彩评论

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