I have a whois service, which allows me to telnet to it and keep the telnet connection open without any time limit on it. I have to do thousands of whois through that telnet session. For example, to whois a domain, i do
echo "mydomain.com"; sleep 5| telnet whoismyserver.com 3454
I cannot run this command for thousands of whois. So is there any way that i can keep the telnet sessions open and pass arguments to it?
i want to keep a persistent telnet connection. and pass arguments to it. is that possible? for example, in above command, i can only pass argument of "echo domain" Once, but i want to pass long list of Echos, but with different intervals, and that too to only open persistent telnet sessions. i want to pass all commands one by one, at different time to one telnet session