Re: Need help with simple script ?



In news:bf3b1828-e494-4484-ba2a-87e7e028e9cc@xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
leepincat <guitarsandkeys@xxxxxxxxx> typed:
On Jan 6, 6:42 pm, Jerry Stuckle <jstuck...@xxxxxxxxxxxxx>
wrote:
On 1/6/2011 9:05 PM, leepincat wrote:





A scripting person I'm not but, I imagine someone could
whip this kind of thing out
with little effort.

Here's the description:

1. Code must compile/run without errors
2. It takes arguments for: timeout, url,
expected_response_code, retry_count
3. The script performs an HTTP GET for the url
4. If the HTTP response code matches the
expected_response_code the script will exit with
status code 0
5. If the HTTP response code doesn't match exit with a
nonzero status code and print an error
6. If the HTTP GET either times out or fails in another
way (connection
refused, etc.) retry until retry count is exhausted
7. If all retries are exhausted without a success,
print a message to STDERR and exit with a non-zero
status code.

Any help greatly appreciated - Donna

What have you tried so far?

We're not going to do your homework for you.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@xxxxxxxxxxxxx
==================- Hide quoted text -

- Show quoted text -

I wouldn't know where to begin!
pushing 60 years, can't recall the last time I had
"homework". Thanks anyway - Donna

Don't worry about Stuckle; he's an egotistic narcissist IMO.

That said, more directly stating your problems and showing the code you
can't get to work would go a long ways toward getting better responses. Ask
ten people and you'll get ten answers to that post, none of which may work
for you.

It IS common practice to not help when it looks like all the person wants is
for someone else to do the work for them.

HTH,

Twayne`


.



Relevant Pages

  • Re: looking for help with script (whats new?)
    ... Show us the script that you are having trouble with, ... If the HTTP response code doesn't match exit with a nonzero status ... It is possible to find folks to write Perl programs for free. ...
    (comp.lang.perl.misc)
  • looking for help with script (whats new?)
    ... The script performs an HTTP GET for the url ... If the HTTP response code doesn't match exit with a nonzero status ... etc.) retry until retry count is exhausted ...
    (comp.lang.perl.misc)
  • Need help with simple script ?
    ... The script performs an HTTP GET for the url ... If the HTTP response code doesn't match exit with a nonzero status ... etc.) retry until retry count is exhausted ...
    (comp.lang.php)
  • Re: Need help with simple script ?
    ... The script performs an HTTP GET for the url ... If the HTTP response code matches the ... If the HTTP response code doesn't match exit with a ... etc.) retry until retry count is exhausted ...
    (comp.lang.php)
  • Re: Need help with simple script ?
    ... The script performs an HTTP GET for the url ... If the HTTP response code doesn't match exit with a nonzero status ... etc.) retry until retry count is exhausted ...
    (comp.lang.php)