From owner-freebsd-questions Fri Feb 2 1:51:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.thpoon.com (cr103675-a.bloor1.on.wave.home.com [24.42.106.79]) by hub.freebsd.org (Postfix) with SMTP id A716F37B503 for ; Fri, 2 Feb 2001 01:51:29 -0800 (PST) Received: (qmail 53692 invoked from network); 2 Feb 2001 09:51:28 -0000 Received: from unknown (HELO tea.thpoon.com) (mail@192.168.1.2) by cr103675-a.bloor1.on.wave.home.com with SMTP; 2 Feb 2001 09:51:28 -0000 Received: from antipode by tea.thpoon.com with local (Exim 3.12 #1 (Debian)) id 14OcsK-0006Vt-00; Fri, 02 Feb 2001 04:51:28 -0500 To: dannyman Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Change group ID in a shell script References: <87vgqteb00.fsf@tea.thpoon.com> <20010202004144.A30084@dell.dannyland.org> <87r91hea7x.fsf@tea.thpoon.com> <20010202005517.B307@dell.dannyland.org> X-Face: 0=A/O5-+sE[Tf%X>rYr?Y5LD4,:^'jaJ!4jC&UR*ZrrK2>^`g22Qeb]!:d;}2YJ|Hq"LHdF OX`jWX|AT-WVFQ(TPhFVak)0nt$aEdlOq=1~D,:\z5QlVOrZ2(H,mKg=Xr|'VlHA="r From: Arcady Genkin Date: 02 Feb 2001 04:51:28 -0500 In-Reply-To: <20010202005517.B307@dell.dannyland.org> Message-ID: <87lmrpe7kv.fsf@tea.thpoon.com> Lines: 18 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dannyman writes: > On Fri, Feb 02, 2001 at 03:54:26AM -0500, Arcady Genkin wrote: > > No, I chgrp is not what I want. I'm running rsync to mirror a > > directory over network, so rsync can potentially create a bunch of new > > files. > > rsync -g? Nope, this means "preserve group". The remote group and local group names do not coinside. I solved the problem by writing a Perl script instead of a shell script (using Perl's `setpgrp'). I would still like to know how I could do that in a shell script, though. -- Arcady Genkin Nostalgia isn't what it used to be. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message