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"; }
In reply to Backticks to capture umask output by austin43
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |