This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

error checking anyone?

Old posts that have not been replied to for several years.
Locked
e
era5or

error checking anyone?

Post by era5or »

proc ftpcheck {nick host hand chan} {
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 :(
Locked