FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Need help with simple script ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Need help with simple script ? [message #171508 is a reply to message #171507] Fri, 07 January 2011 03:07 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
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.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mysqli and mysqli_field_len
Next Topic: Re: php-debug-faq-post in progress
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 11:10:23 GMT 2024

Total time taken to generate the page: 0.05015 seconds