set ftpprog ftp
set server 192.168.0.5
set user testbot
set pass onlinecheck
set pipe [open "|$ftpprog -n $server" w]
puts $pipe "user $user $pass"
puts $pipe "quit"
close $pipe
putserv "privmsg #bottesting : check complete"
}
the above script works, except when the ftp reports "FTP Close: Connection Refused etc"
I have no way of detecting it.. can someone please help me out here and give me some error checking.. im a little lost
