Attachment "list_problem.tcl" to
ticket [1308006fff]
added by
cdclercq
2006-10-03 13:55:07.
package require ftp
# This is a windows 2003 server with IIS 6.0
set h_ftp [ftp::Open 10.17.101.52 ebu_dd64 develop4 -port 22 -output ""]
set ftp::DEBUG 1
ftp::List $h_ftp "filename-which-does-not-exists"
ftp::Close $h_ftp
####### Stdout output #######
-> rc=" "
-> msgtext=""
-> state="type"
---> TYPE A
-> rc="200"
-> msgtext="Type set to A."
-> state="type_sent"
-> rc=" "
-> msgtext=""
-> state="list_active"
---> PORT 10,17,101,53,11,43
-> rc="200"
-> msgtext="PORT command successful."
-> state="list_open"
---> LIST filename-which-does-not-exists
-> rc="150"
-> msgtext="Opening ASCII mode data connection for /bin/ls."
-> state="list_sent"
-> rc="550"
-> msgtext="filename-which-does-not-exists: The system cannot find the file specified. "
-> state="list_close"
Error receiving list!
-> rc=" "
-> msgtext=""
-> state="type"
---> TYPE I
-> rc="200"
-> msgtext="Type set to I."
-> state="type_sent"
-> rc=" "
-> msgtext=""
-> state="quit"
---> QUIT
-> rc="221"
-> msgtext=" "
-> state="quit_sent"
####### Stderr output #######
error error | E: Error receiving list!
package require ftp
# This is a solaris machine
set h_ftp [ftp::Open 10.17.100.202 ebe develop4 -output ""]
set ftp::DEBUG 1
ftp::List $h_ftp "filename-which-does-not-exists"
ftp::Close $h_ftp
####### Stdout output #######
-> rc=" "
-> msgtext=""
-> state="type"
---> TYPE A
-> rc="200"
-> msgtext="Type set to A."
-> state="type_sent"
-> rc=" "
-> msgtext=""
-> state="list_active"
---> PORT 10,17,101,53,11,53
-> rc="200"
-> msgtext="PORT command successful."
-> state="list_open"
---> LIST filename-which-does-not-exists
-> rc="150"
-> msgtext="Opening ASCII mode data connection for /bin/ls."
-> state="list_sent"
-> rc="226"
-> msgtext="Transfer complete."
-> state="list_close"
-> rc=" "
-> msgtext=""
-> state="type"
---> TYPE I
-> rc="200"
-> msgtext="Type set to I."
-> state="type_sent"
-> rc=" "
-> msgtext=""
-> state="quit"
---> QUIT
-> rc="221"
-> msgtext="You have transferred 0 bytes in 0 files."
-> state="quit_sent"
####### Stderr output #######
Nothing