Re: expect-like package

2005-12-21 Thread Cameron Laird
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.*"

Re: expect-like package

2005-12-20 Thread Stephen Thorne
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

expect-like package

2005-12-20 Thread Eric McCoy
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.