On Wed, Nov 24, 2004 at 01:15:35AM -0500, Kripa Sundar wrote:
> Hello all,
>
> I want to do a chgrp() without invoking a child process.
Then use chown():
chown LIST
Changes the owner (and group) of a list of files. The first
two elements of the list must be the NUMERICAL uid and gid, in
that order. Returns the number of files successfully changed.
$cnt = chown $uid, $gid, 'foo', 'bar';
chown $uid, $gid, @filenames;
> I had assumed that chgrp() is a C function with a perl
> equivalent, just the same as chown() and chmod() are.
The manpage for chown(2) does state that it's use is 'change owner
and group of a file', and the perl function is no different.
> Thanks in advance for your help.
>
> peace, || Uttaranchal: Electricity from 7th century water mills:
> --{kr.pA} || http://tinyurl.com/yufep
> --
> What difference does it make to the dead, the orphans and the
> homeless, whether the mad destruction is wrought under the
> name of totalitarianism or the holy name of liberty or
> democracy? -- Mahatma Gandhi, "Non-Violence in Peace and War"
> _______________________________________________
> Boston-pm mailing list
> [EMAIL PROTECTED]
> http://mail.pm.org/mailman/listinfo/boston-pm
--
Brian Reichert <[EMAIL PROTECTED]>
37 Crystal Ave. #303 Daytime number: (603) 434-6842
Derry NH 03038-1713 USA BSD admin/developer at large
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm