L
leepincat
I don't know scripting from Chinese. I'm trying to do a little
research for someone as an act of human kindness.
I don't know if it's difficult, or a simple thing.... hoping if
someone knows how to do this without a lot of effort and time, that
would be great. If I'm off base, ....I tried.
(I don't even know if I'm in the "correct" group.
Is the following something that can be done with PERL?
Could you post some examples? Again, if this is too much to ask, I
apoligize in advance- Donna
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.
research for someone as an act of human kindness.
I don't know if it's difficult, or a simple thing.... hoping if
someone knows how to do this without a lot of effort and time, that
would be great. If I'm off base, ....I tried.
(I don't even know if I'm in the "correct" group.
Is the following something that can be done with PERL?
Could you post some examples? Again, if this is too much to ask, I
apoligize in advance- Donna
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.