- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Exclude list in "find" command?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 04:04 AM
тАО03-16-2010 04:04 AM
Exclude list in "find" command?
Some versions of find allow an exclude list. Does the find on 11.31? I didn't see it in the man page.
Thanks!
Leam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 04:25 AM
тАО03-16-2010 04:25 AM
Re: Exclude list in "find" command?
I'm not sure why you want to checksum special files, but to your question, you could exclude by name, like:
# find /dev ! -name "*tty*" -exec ls -d {} +
Be sure to enclose the name argument in quotes to prevent the shell from expanding it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 04:52 AM
тАО03-16-2010 04:52 AM
Re: Exclude list in "find" command?
Because, ...? Is there some actual problem
which you are trying to solve?
man find
Look for "-type". Consider "f", unless you
can think of a good reason to "run cksum" on
anything else.
> [...] Some versions of find [...]
It's also possible to install GNU "find" on
an HP-UX system, if that's one of those "Some
versions".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 05:19 AM
тАО03-16-2010 05:19 AM
Re: Exclude list in "find" command?
Yes, gnu find does give an exclude option. However, if it resolves to having to compile software the choice will be AIDE, which will really resolve the issue.
Can cksum or something similar operate on character special files?
Leam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 05:38 AM
тАО03-16-2010 05:38 AM
Re: Exclude list in "find" command?
I don't see why you would want to. The are 'c' files. The thing to check with those would be the major/minor number combination if you are concerned about some type of corruption.
'insf' will (re)create any missing or invalid files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 05:48 AM
тАО03-16-2010 05:48 AM
Re: Exclude list in "find" command?
> character special files?
> I don't see why you would want to. [...]
Nor I. What's the checksum of a tape drive?
> Is there some actual problem which you are
> trying to solve?
Still wondering.
> I'm just implementing directives.
Sometimes it pays to ask why. Especially
when the "directives" make little or no
sense.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 06:08 AM
тАО03-16-2010 06:08 AM
Re: Exclude list in "find" command?
If that plan works it would meet the directives. In this case we can justify an exemption to the directive. It just needs to be a reasonable justification.
For those who haven't worked in a facility with lots of regulations made by people who don't do this stuff; you have my envy...
Leam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 06:17 AM
тАО03-16-2010 06:17 AM
Re: Exclude list in "find" command?
> Would there be an issue with running "insf -eq" on a weekly basis?
I don't believe that this is going to accomplish anything more than recreate *missing* device files.
The '/dev' directory should have permissions of 555 owned by 'bin' which means that only the root user can remove, add, or modify files within it.
I think a bit of education is a better way to "regulate". If your management is insistent of discovering any changes, you might snapshot an 'ls' of the '/dev' directory and compare its contents to the running system.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 06:26 AM
тАО03-16-2010 06:26 AM
Re: Exclude list in "find" command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 06:31 AM
тАО03-16-2010 06:31 AM
Re: Exclude list in "find" command?
Tell the auditors that HP-UX is not a PC.
Bill Hassell, sysadmin