austin43 has asked for the wisdom of the Perl Monks concerning the following question:
For some reason the string won't capture the output of umask. (The string just shows up blank)Is there something I'm missing? Thanks in advance.$confirm_SysUmask = `umask`; if ($confirm_SysUmask =~ m/^0037$/) { #if umask output equals 0037 print "SUCCESS: System umask set correctly ($confirm_SysUmask) +\n"; } else { #if umask output not equal to 0037 print "ERROR: System umask incorrect ($confirm_SysUmask)\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Backticks to capture umask output
by saberworks (Curate) on May 24, 2011 at 20:46 UTC | |
|
Re: Backticks to capture umask output
by ikegami (Patriarch) on May 24, 2011 at 20:49 UTC | |
by austin43 (Acolyte) on May 24, 2011 at 20:58 UTC | |
by austin43 (Acolyte) on May 24, 2011 at 20:56 UTC | |
by ikegami (Patriarch) on May 24, 2011 at 20:59 UTC | |
by ikegami (Patriarch) on May 24, 2011 at 20:58 UTC |