🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Scott R. Presnell%Cohen Tue, 11 Jun 1991 21:10
hostvar patches to rdist
#1946
Author: Scott R. Presnell%Cohen
Date: Tue, 11 Jun 1991 21:10
48 lines
2094 bytes
I've made some changes to rdist that I though others might be able to use.
With the described patches you can use a symbol '%' which will be expanded
into a remote host name.

You can place the '%' at any place in a path name. eg:

=== Distfile

HOSTS =  ( micky.my.edu minnie.my.edu goofy.my.edu pluto.my.edu )

fstabs/%S -> ${HOSTS}
	install -y /etc/fstab;

fstabs/%S -> ${HOSTS}
	install -y /backup/fstab.%F;

=== 

During each host update, the %? variable is expanded into some form of the
current remote hostname.  The %? variable will be clobbered if it is inside
of a "normal" variable.  Currently, it does not work with the "special" or
"except" commands.

Variables available:

%S = "Short" version of the host name (up to the first ".").
%F = Fully Qualified Domain Name, as best as can be determined.
%H = The name of the current remote host (as on the other side of the ->).
%D = Domain name - taken from the current rhost if there is a domain on
	this name, otherwise taken from the hostname. If neither names have
	domains, NULL.

This was build on top of the version:

	static char sccsid[] = "@(#)server.c	5.8 (Berkeley) 6/29/88";

plus a few other changes so the patches may be a little out of phase with
your version.

The patches are available from babar.mmwb.ucsf.edu [128.218.21.42] via anon
ftp (~ftp/pub/hostvar.shar.Z). 

	- Scott Presnell (srp@cgl.ucsf.edu)
--
Scott Presnell				        +1 (415) 476-9890
Pharm. Chem., S-926				Internet: srp@cgl.ucsf.edu
University of California			UUCP: ...ucbvax!ucsfcgl!srp
San Francisco, CA. 94143-0446			Bitnet: srp@ucsfcgl.bitnet
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads