Re: Match until new line


#1

From: anon1m0us [mailto:removed_email_address@domain.invalid]

WHat is sharelist = <<EOS ???

See: http://rubyurl.com/SSM


#2

On Feb 7, 12:03 pm, “Gavin K.” removed_email_address@domain.invalid wrote:

From: anon1m0us [mailto:removed_email_address@domain.invalid]

WHat is sharelist = <<EOS ???

See:http://rubyurl.com/SSM

I checked that URL, I do not see what EOS stands for and how it is
used.


#3

On Feb 7, 12:03 pm, “Gavin K.” removed_email_address@domain.invalid wrote:

From: anon1m0us [mailto:removed_email_address@domain.invalid]

WHat is sharelist = <<EOS ???

See:http://rubyurl.com/SSM

Ahh, sorry, I was looking for EOS, not “Strings can continue across
multiple input lines”. How would this work if i use srvcheck on
multiple servers that can be stored in an array?


#4

On Thu, Feb 08, 2007 at 03:25:05AM +0900, anon1m0us wrote:

On Feb 7, 12:03 pm, “Gavin K.” removed_email_address@domain.invalid wrote:

From: anon1m0us [mailto:removed_email_address@domain.invalid]

WHat is sharelist = <<EOS ???

See:http://rubyurl.com/SSM

Ahh, sorry, I was looking for EOS, not “Strings can continue across
multiple input lines”. How would this work if i use srvcheck on
multiple servers that can be stored in an array?

This syntax, called a “here-document”, was just a short-cut way for me
to
include a test dataset directly in the program, instead of reading it in
from
a file.

string = <<FOOBAR
This is a long
multi-line string
FOOBAR

If you run srvcheck across multiple servers, you should just be able to
concatenate all the strings together. The last code example I posted
(with
the regexp scan) didn’t use an array at all.

HTH,

Brian.