If it's your server, maybe consider using Perl to write a clean server side code with a decent html interface instead of hacking something together with telnet and shell commands?
holli
You can lead your users to water, but alas, you cannot drown them.
"Perl to write a clean server side code with a decent html interface"
You mean like a graphical interface ? That would be incredible... but I have no knowledge on html and just starting Perl... I'm not sure if this is the right idea for the moment... It seems like going through telnet and shell with Perl looks "simpler" to understand and learn... I don't know.