Advertisement

03.11.2008 at 04:05PM PDT, ID: 23233575
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.1

redirect standard input to a file, for a command line interactive program

Asked by zzhang2006 in HTTP, Linux, SSH / Telnet Software

I am trying to use the command line Telnet program to get a web page file by doing the
following:

[root@cslinux zezhang]# telnet 10.40.0.2 80
Trying 10.40.0.2...
Connected to mozart.ncsu.edu (10.40.0.2).
Escape character is '^]'.
GET /courses/day08FA.html
... (html file print to screen)

Above works, but I need to have a one-liner command to do this so I could put this in
another program such as perl or php

I have been trying this:
telnet < day

Here  "day"  is a file containing:
open 10.40.0.2 80
GET /courses/day08FA.html

But it didn't work. It got connected to the remote site but second line, GET, was igored.

[root@cslinux zezhang]# telnet < day
telnet> Trying 10.40.0.2...
Connected to mozart.ncsu.edu (10.40.0.2).
Escape character is '^]'.
Connection closed by foreign host.

I hope you, the experts, can provide a solution for this -- run telnet to get an updated html doc from a server, using a a script or whatever.

Thanks in advance.

ZeStart Free Trial
 
Loading Advertisement...
 
[+][-]03.12.2008 at 01:22PM PDT, ID: 21110348

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: HTTP, Linux, SSH / Telnet Software
Sign Up Now!
Solution Provided By: Fredde87
Participating Experts: 2
Solution Grade: B
 
 
[+][-]03.13.2008 at 11:03PM PDT, ID: 21123322

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628