Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: chmod fails

by Your Mother (Archbishop)
on Aug 15, 2020 at 02:38 UTC ( [id://11120759]=note: print w/replies, xml ) Need Help??


in reply to chmod fails

To futher wazat’s reply to hippo’s reply… You can write bare octal numbers in perl with a leading zero. perldoc chmod has some examples.

moo@cow[18]~>touch bingo moo@cow[19]~>ls -laF bingo -rw-rw-r-- 1 moo staff 0 Aug 14 22:31 bingo moo@cow[20]~>perl -E 'chmod 0624, "bingo"' moo@cow[21]~>ls -laF bingo -rw--w-r-- 1 apv staff 0 Aug 14 22:31 bingo moo@cow[22]~>perl -E 'say 0755; printf "%o\n", 493' 493 755

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found