From: David Douthitt Date: 2002-07-02T22:08:25+09:00 Subject: Re: Question: ruby vs. ksh This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. ----=_NextPart_ST_08_08_18_Tuesday_July_02_2002_302 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable David Douthitt CUNA & Affiliates UNIX Systems Administrator ddouthitt@cuna.coop >>> tim@vegeta.ath.cx 7/1/02 7:30PM >>> > David Douthitt graced us by uttering: > > PPS: How do I do > > > > chown -R user:grp dir > >=20 > > in Ruby? > > File::chown > > can also be used for chgrp(1) operations. =20 > > Basically, many shell commands can be replaced by the use > of commands in the Kernel, File, or Dir modules. Except that wasn't the point (chgrp, that is). I hadn't thought about it, = but I figure that part would be easy. The important (harder?) question is = the '-R' option: recursing through the entire directory and all subdi= rectories underneath it, changing the ownership for all files. ----=_NextPart_ST_08_08_18_Tuesday_July_02_2002_302 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
 
 
David Douthitt
CUNA & Affiliates
UNIX Systems Administrator<= BR>ddouthitt@cuna.coop
 


>>> tim@vegeta.ath.cx 7/1/02 7:30PM >>>
&= gt;=20 David Douthitt graced us by uttering:
> > PPS: How do I do
>= =20 >
> > chown -R user:grp dir
> >
> > in=20 Ruby?
>
> File::chown
>
> can also be used for chgr= p(1)=20 operations. 
>
> Basically, many shell commands can be replaced by the use
> of commands in the Kernel, File, or Dir modules.
Except that wasn't the point (chgrp, that is).  I hadn't thought = about=20 it, but I figure that part would be easy.  The important (harder?) que= stion=20 is the '-R' option: recursing through the entire directory <dir> and = all=20 subdirectories underneath it, changing the ownership for all files.
 
----=_NextPart_ST_08_08_18_Tuesday_July_02_2002_302--