Re: Match until new line

From: anon1m0us [mailto:[email protected]]

WHat is sharelist = <<EOS ???

See: http://rubyurl.com/SSM

On Feb 7, 12:03 pm, “Gavin K.” [email protected] wrote:

From: anon1m0us [mailto:[email protected]]

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.

On Feb 7, 12:03 pm, “Gavin K.” [email protected] wrote:

From: anon1m0us [mailto:[email protected]]

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?

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

On Feb 7, 12:03 pm, “Gavin K.” [email protected] wrote:

From: anon1m0us [mailto:[email protected]]

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs