in reply to Perl/Tk, or CGI

Well... it sounds like you've got a start, considering that you know Perl/Tk. For the telnet and FTP pieces, check out Net::Telnet and Net::FTP, which vastly simplify the work you need to do to communicate with telnet and ftp servers.