i would like to make a shell script (red hat 9 cmd line only)
to telnet to my local isp's webmail server on port 25 and send it commands
such as helo
help would be much appreciated, and i found no posts similar that answered my question... the closest i've gotten to an answer from about 8 google searches is :
CODE:
#/usr/bash
( echo "helo" ) | telnet /*webserver*/ /*port*/ ;
CODE:
this code did not seem to do the job
sadly...
i could manage in c++ possibly.. with some guidance but i'm trying to learn some shell programming, i've also given up on trying to do this with a doskey macro or a batch file on windows..
would someone please help me?
i'm using red hat 9 cmd line only (no gui package installed)
BTW: batch file code to do this would be awesome