Re: Need help with simple script ? [message #171518 is a reply to message #171511] |
Fri, 07 January 2011 13:14 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 1/6/2011 11:01 PM, leepincat wrote:
> 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
>
>
No, these newsgroups are for helping people. However, they are not for
free consulting.
We will help others who are trying to do it themselves, giving the
guidance and tips along the way. But too often people come here looking
for someone to do their homework for them. This does not help them
learn very well, as I can attest from around 20 years of corporate
training for programmers - the best teachers help them do it themselves.
Your student hasn't asked here, but if he had tried to work on the
problem and asked for help, we would have gotten lots of it.
One other thing - there are some like Sherm who think they should get
all the free consulting help they want from this newsgroup instead of
paying for it. They're famous for calling me a troll and other names.
That's OK, they aren't the ones who help here. They just bitch and try
to get more free consulting.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|