Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
There's more than one way to do things
 
PerlMonks  

Re: "not enough arguments" with 'mkdir' command

by jsprat (Curate)
on Dec 09, 2003 at 01:01 UTC ( #313333=note: print w/ replies, xml ) Need Help??


in reply to "not enough arguments" with 'mkdir' command

When I try to supply a mask argument to the above, the directory gets created but not with the mask I used.

When you say "but not with the mask I used", what exactly do you mean? Do you supply '0777', but it is created '0755'?

What is the mask you are supplying, what are the permissions on the directory, what are you expecting the new directory's permissions to be - and finally, what is your umask?


Comment on Re: "not enough arguments" with 'mkdir' command
Re: Re: "not enough arguments" with 'mkdir' command
by nysus (Deacon) on Dec 09, 2003 at 01:20 UTC
    OK, I was supplying the mask as a string literal, surrounded by single quotes, which gave me interesting results. When I supply an integer in octal, the correct permissions are set. Thanks for the help.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff";
    $nysus = $PM . $MCF;
    Click here if you love Perl Monks

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-04-18 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (473 votes), past polls