Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Recursive chown?

by ccarden (Monk)
on Aug 31, 2005 at 18:43 UTC ( [id://488190]=perlquestion: print w/replies, xml ) Need Help??

ccarden has asked for the wisdom of the Perl Monks concerning the following question:

Hi, all,

It appears from the perldocs that chown in Perl does not have the ability to work recursively, as it does in the shell (e.g., chown -R user path). Is that correct?

Thanks.

Replies are listed 'Best First'.
Re: Recursive chown?
by merlyn (Sage) on Aug 31, 2005 at 18:45 UTC
Re: Recursive chown?
by radiantmatrix (Parson) on Aug 31, 2005 at 20:03 UTC

    It appears from the perldocs… Is that correct?

    The perldoc is usually accurate in such matters, yes.

    <-radiant.matrix->
    Larry Wall is Yoda: there is no try{} (ok, except in Perl6; way to ruin a joke, Larry! ;P)
    The Code that can be seen is not the true Code
    "In any sufficiently large group of people, most are idiots" - Kaa's Law
Re: Recursive chown?
by Errto (Vicar) on Sep 01, 2005 at 01:39 UTC
    Just for reference, it's probably not the shell that gives you a recursive chown, but rather the GNU coreutils. IIRC non-GNU systems don't have recursive chown.
      IIRC non-GNU systems don't have recursive chown.
      V7 Unix (the One True Unix) didn't have a recursive chown, but 2.10BSD introduced it in 1986, so it predates the GNU fileutils package and therefore Linux.

      ... says the old guy in the corner ...

      -- Randal L. Schwartz, Perl hacker
      Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://488190]
Approved by lidden
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-25 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found