Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: invoking umask command in perl

by ig (Vicar)
on Jun 01, 2011 at 20:42 UTC ( #907709=note: print w/replies, xml ) Need Help??

in reply to invoking umask command in perl

`umask 0037`;

The primary reason this fails is probably that there is no executable named umask on your system. I can't be certain there is non, as someone may have done something unusual on your system, but generally there is none.

When I run such a command on my system, I get the following error: Can't exec "umask": No such file or directory at ./ line 5.

There is no umask executable because it would be difficult to write and contrary to the convention that child processes do not modify their parent process and would otherwise be useless except to display the current setting. It is a shell builtin function so that it can change the setting of the shell.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://907709]
[pryrt]: Thus, that's "enough precision" to tell the difference between 1.0 and 1.0+1ULP
[pryrt]: But in what circumstance does your problem arise? When, in Perl, does the integer 1 not work identically to the floating-point NV 1.0000000000000000 e0?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (16)
As of 2017-05-24 19:15 GMT
Find Nodes?
    Voting Booth?