Great Circle Associates Majordomo-Users
(June 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Private lists
From: "Daniel C. L'Hommedieu" <dcl @ explore . com>
Date: Tue, 10 Jun 1997 09:42:38 -0400 (EDT)
To: dparker @ qcci . com . au (Darryn Parker)
Cc: majordomo-users @ GreatCircle . COM
In-reply-to: <199706100610.QAA15473@qcci.qcci.com.au> from "Darryn Parker" at Jun 10, 97 04:10:38 pm

Darryn Parker wrote:
> I wish to create a private list. I know what "noadvertise" and "advertise"
> do but the following line in my test.config file has no effect
> 
> noadvertise /.*/ << END
> 
> whats' wrong?

Lines that are of the form

command <<END
blah
blah2
blah3
END

will execute "command" on all of the input up to (but not including) the
'END' marker.

It's very common practise to use these in sh scripts, but you can also
do it in perl:

	#!/usr/bin/perl
	print <<DCL;
	hi
	this is cool
	DCL
	print "Done\n";

will print 3 lines:
	hi
	this is cool
	Done

(Note: in Perl there can be no space between the '<<' and the marker.)

Daniel
-- 
Daniel C. L'Hommedieu
dcl@explore.com
Network Systems Technician


Follow-Ups:
References:
Indexed By Date Previous: Re: Server load and list volume
From: "Daniel C. L'Hommedieu" <dcl@explore.com>
Next: Re: Server load and list volume
From: Rich Pieri <rich.pieri@prescienttech.com>
Indexed By Thread Previous: Private lists
From: Darryn Parker <dparker@qcci.com.au>
Next: Re: Private lists
From: Dave Wolfe <dwolfe@risc.sps.mot.com>

Google
 
Search Internet Search www.greatcircle.com