Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: (code) Recursive chmod chown chgrp in 30 lines

by Anonymous Monk
on Oct 16, 2004 at 01:26 UTC ( #399708=note: print w/replies, xml ) Need Help??


in reply to (code) Recursive chmod chown chgrp in 30 lines

I found this code particularly useful and elegant. The use of the find command with the subroutine really made a hard task easy. I did not use all of it, but there are definitely some nice things happening here.

I found one reason to use this type of thing instead of chown/chgrp/chmod is because this is more portable. As long as perl is installed this script will work where as the chown/chgrp/chmod commands may not be on every system that runs perl. This allows me to only require perl for my users.
  • Comment on Re: (code) Recursive chmod chown chgrp in 30 lines

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://399708]
help
Chatterbox?
[stevieb]: I have got ready everything in a stable manner to go forward with a full-blown "Raspberry Pi with Perl" series, and at the same time "Automated testing locally for everything" series. A year it took. A year I've been waiting to do this.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-06-29 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (653 votes). Check out past polls.