bowei_99 has asked for the wisdom of the Perl Monks concerning the following question:
ShowPerm.pl is a script that I know works, and is in the same directory as the script. It seems like I may have to read in the ACL of the file and see if I'm in a group that has the appropriate level of access to that file. However, it can be a catch-22, as if I don't even have the ability to list the file, I wouldn't be able to check the ACLs on it, either. Besides, it just seems like a clumsy process with a lot of overhead. What would you all suggest?my $filename = 'ShowPerm.pl'; if ( -x $filename ) { print "Filename $filename is executable \n"; }
-- Burvil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 File tests, pathnames
by GrandFather (Saint) on Apr 05, 2006 at 23:53 UTC | |
by bowei_99 (Friar) on Apr 06, 2006 at 00:14 UTC | |
by GrandFather (Saint) on Apr 06, 2006 at 00:19 UTC | |
by bowei_99 (Friar) on Apr 06, 2006 at 01:55 UTC | |
by GrandFather (Saint) on Apr 06, 2006 at 02:17 UTC | |
by salva (Canon) on Apr 06, 2006 at 09:23 UTC | |
|
Re: Win32 File tests, pathnames
by cdarke (Prior) on Apr 06, 2006 at 09:23 UTC | |
|
Re: Win32 File tests, pathnames
by bowei_99 (Friar) on Apr 06, 2006 at 01:57 UTC | |
|
Re: Win32 File tests, pathnames
by cdarke (Prior) on Apr 06, 2006 at 11:32 UTC | |
|
Re: Win32 File tests, pathnames
by pKai (Priest) on Apr 06, 2006 at 07:03 UTC |