srp@babar.mmwb.ucsf.edu (Scott R. Presnell%Cohen) (06/12/91)
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