and catch if it was sucessfull or not..
I have been hunting throught the forums and tried several things, but every time i can connect but unable to send info to the ftp server..
the ftp server im using conforms to rfc so it uses.. USER | PASS as its commands eg. USER testuser ,would send username testuser to it and same for password.
here is what i have created so far, which connects but dont seem to send any other commands to the ftp

-- SCRIPT ---
proc ftpcheck {nick host hand chan} {
set idx [connect 192.168.0.5 21]
putdcc $idx "USER testuser"
putdcc $idx "PASS testpass"
putserv "privmsg test :ftp test end"
}
-- SCRIPT END --
please could someone tell me where i gone wrong and maybe give me an example script that connectes sends user / pass and then quits an ftp..
thanks