In article <[EMAIL PROTECTED]>,
Stephen Thorne <[EMAIL PROTECTED]> wrote:
>On 21/12/05, Eric McCoy <[EMAIL PROTECTED]> wrote:
>> So for HTTP, for example, I'd use something
>> like this:
>>
>> send "HEAD / HTTP/1.0"
>> send "Host: server.host.name"
>> send ""
>> expect ...
>> "^HTTP/1\.0 200.*"
On 21/12/05, Eric McCoy <[EMAIL PROTECTED]> wrote:
> So for HTTP, for example, I'd use something
> like this:
>
> send "HEAD / HTTP/1.0"
> send "Host: server.host.name"
> send ""
> expect ...
> "^HTTP/1\.0 200.*" then return success
> "^HTTP/1\.0 4\d\d.*" then return warning
> else return err
I'm looking for a way to create simple scripts which should be
accessible to a technical, though non-programmer, person. These scripts
are basically network service checks so I don't need much power: "send
this line," "if this line matches, keep going," and "if this line
matches, quit immediately.