Originally I had a script like: telnet host port then type STATUS for checking remote server,local server status and connection. In order to omit typing "STATUS", now I'm trying combine these two commands into one line, how to write it?
or do we have another way to achieve the same purpose?
I'm a newbie of Unix, the question I already asked many people, but still cannot get a answer, really hope someone can teach me how to solve the problem. thank you~