Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^7: invoking umask command in perl

by shmem (Chancellor)
on Jun 01, 2011 at 19:39 UTC ( #907700=note: print w/replies, xml ) Need Help??

in reply to Re^6: invoking umask command in perl
in thread invoking umask command in perl

By altering a copy, you won't change the original. The perl program gets its environment and bits and settings from the invoking process, and that one (e.g. a root shell) won't change its mind just because perl is twiddling its own copy of the big picture. There are tricks to swap copy and original, but these involve changing system files. And even so, if you change things behind the back of the program which invoked perl, it just won't notice. For an effective and persistent change of umask usually a new process chain is necessary, starting with login(1).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://907700]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2017-12-17 10:30 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (463 votes). Check out past polls.