Special_K has asked for the wisdom of the Perl Monks concerning the following question:
If I run the "umask" command in a Linux terminal, the result is 2. I am running tcsh and have a perl script that runs the following commands:
printf("umask is %s\n", umask()); system "/usr/bin/xterm -name \"test\" -hold -e '$command' & ";
where $command is:
echo \"umask is \" ; umask; ";
The first printf() statement returns 2, but the echo called from the xterm returns 22. Why are these different, and what should I do to make the 22 a 2?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: umask when calling xterm from perl
by hippo (Bishop) on Apr 09, 2019 at 17:24 UTC | |
by Special_K (Monk) on Apr 09, 2019 at 17:50 UTC | |
by hippo (Bishop) on Apr 09, 2019 at 21:25 UTC | |
by Special_K (Monk) on Apr 10, 2019 at 15:42 UTC | |
by hippo (Bishop) on Apr 10, 2019 at 15:48 UTC | |
| |
by Anonymous Monk on Apr 09, 2019 at 18:00 UTC |
Back to
Seekers of Perl Wisdom