Re: chgrp

2002-11-07 Thread John W. Krahn
[ Message rearranged in chronological order ]

[ Signatures and other non relevant stuff removed ]


Nikola Janceski wrote:
> 
> > From: John W. Krahn [mailto:krahnj@;acm.org]
> >
> > Nikola Janceski wrote:
> > >
> > > I know there is a chmod function in Perl, but is there a
> > > chgrp function or module?
> >
> > perldoc -f chown
> 
> Facinating, so is that a no?

No, there is not a specific chgrp function because chown does that.

perldoc -f chown

   chown LIST
   Changes the owner (and group) of a list of files.
   The first two elements of the list must be the
   numeric uid and gid, in that order.  A value of -1
   in either position is interpreted by most systems
   to leave that value unchanged.  Returns the number
   of files successfully changed.


So if you want a chgrp function:

sub chgrp { chown -1, @_ };




John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: chgrp

2002-11-07 Thread Tanton Gibbs
http://search.cpan.org/author/SDAGUE/ppt-0.12/bin/chgrp
- Original Message -
From: "Nikola Janceski" <[EMAIL PROTECTED]>
To: "'John W. Krahn'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 2:02 PM
Subject: RE: chgrp


> Facinating, so is that a no?
>
> > -Original Message-
> > From: John W. Krahn [mailto:krahnj@;acm.org]
> > Sent: Thursday, November 07, 2002 1:41 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: chgrp
> >
> >
> > Nikola Janceski wrote:
> > >
> > > I know there is a chmod function in Perl, but is there a
> > chgrp function or
> > > module?
> >
> > perldoc -f chown
> >
> >
> > John
> > --
> > use Perl;
> > program
> > fulfillment
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
--
> 
> The views and opinions expressed in this email message are the sender's
> own, and do not necessarily represent the views and opinions of Summit
> Systems Inc.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: chgrp

2002-11-07 Thread Nikola Janceski
Facinating, so is that a no?

> -Original Message-
> From: John W. Krahn [mailto:krahnj@;acm.org]
> Sent: Thursday, November 07, 2002 1:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: chgrp
> 
> 
> Nikola Janceski wrote:
> > 
> > I know there is a chmod function in Perl, but is there a 
> chgrp function or
> > module?
> 
> perldoc -f chown
> 
> 
> John
> -- 
> use Perl;
> program
> fulfillment
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: chgrp

2002-11-07 Thread John W. Krahn
Nikola Janceski wrote:
> 
> I know there is a chmod function in Perl, but is there a chgrp function or
> module?

perldoc -f chown


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]