1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Combine Telnet And Status Commands Together

Discussion in 'Shell Script' started by crystaliao, Aug 28, 2010.

  1. crystaliao

    crystaliao New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi everyone,

    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~
     

Share This Page