Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!linus!philabs!ttidca!sa From: sa@ttidca.TTI.COM (Steve Alter) Newsgroups: comp.sources.wanted Subject: "cpmod" Copy Modes program wanted Message-ID: <1092@ttidca.TTI.COM> Date: Tue, 11-Aug-87 13:03:42 EDT Article-I.D.: ttidca.1092 Posted: Tue Aug 11 13:03:42 1987 Date-Received: Sat, 15-Aug-87 08:18:38 EDT Reply-To: sa@ttidca.TTI.COM (Steve Alter) Distribution: na Organization: Citicorp/TTI, Santa Monica Lines: 26 This shouldn't be too tough to write, but why re-invent the computer? We could really use a "cpmod" program to copy modes/ownerships/times from one existing file to other existing files. I envision the syntax like: cpmod [-m] [-o] [-t] file another-file ... This would copy modes (unless -m is given), ownerships (unless -o is given) and times (unless -t is given) from the first file to all of the other files. Note that copying of times is not possible if any destination file is a directory, but no error message should be produced in that case. If all three options are given then an error message should be produced saying that there is no work left to do. Once this is done, could it be incorporated into a rcpmod "Remote Copy Modes" program? We need something like this to maintain files on our local network, but "rcp -p" won't suffice because each system needs slight modifications in many of the files and I'd like all of the destination versions to have the same timestamp, modes, etc. (Sounds like a good project for a CS graduate student! (:-)) -- Steve Alter ...!{csun,trwrb,psivax}!ttidca!alter or alter@tti.com Citicorp/TTI, Santa Monica CA (213) 452-9191 x2541