tags:

views:

78

answers:

1

Hello All

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 .

A: 

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

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

Hai Vu