in reply to how to check permissions

What type of access? Read? Write? Both? Try the -x, -r, -w operators:

$ perl -e 'print "Can read\n" if -r "/home"' $ perl -e 'print "Can write\n" if -w "/home"' $ perl -e 'print "Can execute (or cd into if dir)\n" if -x "/home"'

-derby

Replies are listed 'Best First'.
oen more thing
by Anonymous Monk on May 01, 2003 at 18:16 UTC
    how can i combine all there in one go instead of in three ways thanks
Re: Re: how to check permissions
by Anonymous Monk on May 01, 2003 at 17:55 UTC
    THANK YOU SOOOOOOOOO MUCH I LOVE THE HELP YOU GAVE ME