in reply to Re: Re: How to chgrp in perl?
in thread How to chgrp in perl?

getgrnam, in scalar context, returns the group ID of the named group:
my $gid = getgrnam("users");
Now you can use the chown function.

perldoc -f getgrnam gives more detailed information about getgrnam (and its sibling functions).

Arjen

Replies are listed 'Best First'.
Re: Re: Re: Re: How to chgrp in perl?
by neniro (Priest) on Apr 04, 2004 at 14:19 UTC
    That really helps me.
    Thanks a lot!

    neniro