Skip site navigation (1)Skip section navigation (2)
Date:      02 Feb 2001 04:51:28 -0500
From:      Arcady Genkin <a.genkin@utoronto.ca>
To:        dannyman <dannyman@toldme.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Change group ID in a shell script
Message-ID:  <87lmrpe7kv.fsf@tea.thpoon.com>
In-Reply-To: <20010202005517.B307@dell.dannyland.org>
References:  <87vgqteb00.fsf@tea.thpoon.com> <20010202004144.A30084@dell.dannyland.org> <87r91hea7x.fsf@tea.thpoon.com> <20010202005517.B307@dell.dannyland.org>

next in thread | previous in thread | raw e-mail | index | archive | help
dannyman <dannyman@toldme.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87lmrpe7kv.fsf>