Re: Need help with simple script ? [message #171511 is a reply to message #171508] |
Fri, 07 January 2011 04:01 |
leepincat
Messages: 4 Registered: January 2011
Karma:
|
Junior Member |
|
|
On Jan 6, 7:07 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> On 1/6/2011 9:49 PM, leepincat wrote:
>
>
>
>
>
>> On Jan 6, 6:42 pm, Jerry Stuckle<jstuck...@attglobal.net> 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.
>
>>> - 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
>
> I'm pretty close to the same age. But I still take classes and get
> homework. Nothing like it to keep your mind active.
>
> So if this isn't homework, why would someone want a person with no
> scripting experience?
>
> And I don't doubt you, but it really does sound like a homework question
> - both in wording and function. Very similar to what I would give my
> students.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================- Hide quoted text -
>
> - Show quoted text -
I'm a music teacher by trade.
I was hoping that I could help out one of my students and show him,
by example, that he could reach out to these news groups for guidance
and a helping hand. He said he had been down this path and rec'd no
help.
I wanted to prove him wrong and at the same time find a solution for
him....perhaps he would have more time to practice. (I have selfish
motives.)
Sadly, it seems he was right.....but maybe not. There might be
someone
who has a moment to share something constructive.
I presumed these newsgroups were for exchanging information and
mentoring those who were on their way up.
If I knew how to help him with this, I would have assisted him without
hesitation. I enjoy helping people.... no questions asked.
Thanks anyway, -Dk
The mediocre teacher tells. The good teacher explains. The superior
teacher demonstrates. The great teacher inspires.
- William Arthur Ward, 1921 - 1994
|
|
|