[HPADM] RE: Find executable files

From: Miller, Tammy S. (MillerT1@diebold.com)
Date: Thu Aug 17 2006 - 07:28:21 EDT


Thanks to everyone, I had many good solutions! As alot of people noted
the -print was messing up my output. The command I used was find / -type
f -perm -100 -exec ll {} \
 
Thanks again,

Tammy Miller
Diebold, Inc.
Tel: 330-490-6629
Mob: 330-715-3856
millert1@diebold.com

 

________________________________

From: Lodge, David [mailto:David.Lodge@capitalone.com]
Sent: Thursday, August 17, 2006 5:03 AM
To: Miller, Tammy S.
Subject: RE: [HPADM] Find executable files

Your find should work okay, the way I'd do this would be to do:
    find /usr/local -perm -u+x ! -type d
(to exclude directories as these need the x permission to go into them)
 
What may be causing the problem is the -print, as -print is always true
it will print all files (though the -perm should override it).

        -----Original Message-----
        From: hpux-admin-owner@DutchWorks.nl
[mailto:hpux-admin-owner@DutchWorks.nl] On Behalf Of Miller, Tammy S.
        Sent: 16 August 2006 19:03
        To: hpux-admin@dutchworks.nl
        Subject: [HPADM] Find executable files
        
        

        Hello,
        I've been trying to use the find command with the -perm option
to find all files which are executable, but I cannot get it to work. Is
there any way that anyone knows of to get a listing of all and only
executable (by anyone) files? For example, I thought that find / -perm
-100 -print would only list files which are executable by owner, but on
my 11.0 server it lists all files.

        Thanks!

        Tammy Miller
        Diebold, Inc.
        Tel: 330-490-6629
        Mob: 330-715-3856
        millert1@diebold.com

The information contained in this e-mail is confidential and/or
proprietary
to Capital One and/or its affiliates. The information transmitted
herewith
is intended only for use by the individual or entity to which it is
addressed. If the reader of this message is not the intended recipient,

you are hereby notified that any review, retransmission, dissemination,
distribution, copying or other use of, or taking of any action in
reliance
upon this information is strictly prohibited. If you have received this
communication in error, please contact the sender and delete the
material
from your computer.

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:54 EDT