Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!hc!beta!cmcl2!philabs!steinmetz!sprite!montnaro From: montnaro@sprite.steinmetz (Skip Montanaro) Newsgroups: comp.unix.questions Subject: How do you execute an rdist special command after everything's done? Message-ID: <6054@steinmetz.steinmetz.UUCP> Date: Fri, 22-May-87 17:04:20 EDT Article-I.D.: steinmet.6054 Posted: Fri May 22 17:04:20 1987 Date-Received: Sat, 23-May-87 19:17:43 EDT Sender: root@steinmetz.steinmetz.UUCP Reply-To: montnaro@sprite.steinmetz.UUCP (Skip Montanaro) Followup-To: comp.unix.questions Distribution: na Organization: General Electric CRD, Schenectady, NY Lines: 33 Keywords: rdist make I recently began fiddling around with rdist (on Sun UNIX 3.2). I want to have a command (like make) execute after ALL the files have been copied to the remote host. According to the BUGS section of the rdist man page, there is no easy way to do it. I came up with the following kluge: 1. Create a simple makefile with the following target description: dist : rm -f markerfile rdist touch markerfile rdist 2. Add the following special command to the distfile: special markerfile "some command, like a local make goes here" ; 3. Execute make. This seems to work okay, but is there some cleaner way around the problem? As far as I can see, there's no foolproof way to trigger the special command on one of the actual files getting distributed, since you don't know if it changed. Any ideas? Thanks, -- Skip| ARPA: montanaro@ge-crd.arpa Montanaro| UUCP: montanaro@desdemona.steinmetz.ge.com (518)387-7312| GE DECnet: advax::"montanaro@desdemona.steinmetz.ge.com"