How can I further optimize this Perl script for finding all unowned files and directories on Unix?
The purpose of this script is to report all unowned files and directories on a Unix system for audit compliance. The script has to accept a list of directories and files to exclude (either by full path or wildcard name), and must take as little processing power as possible. It is meant to be run on hundreds of Unix systemsystems that we (the company I work for) support, and has be able to run on all those Unix systems (multiple OS, multiple platforms: AIX, HP-UX, Solaris and Linux) without us having to install or upgrade anything first. In other words, it has to run with standard libraries and binaries we can expect on all systems.
How can I further optimize this Perl script for finding all unowned files and directories on Unix?
The purpose of this script is to report all unowned files and directories on a Unix system for audit compliance. The script has to accept a list of directories and files to exclude (either by full path or wildcard name), and must take as little processing power as possible. It is meant to be run on hundreds of Unix system that we (the company I work for) support, and has be able to run on all those Unix systems (multiple OS, multiple platforms: AIX, HP-UX, Solaris and Linux) without us having to install or upgrade anything first. In other words, it has to run with standard libraries and binaries we can expect on all systems.
Perl script for finding all unowned files and directories on Unix
The purpose of this script is to report all unowned files and directories on a Unix system for audit compliance. The script has to accept a list of directories and files to exclude (either by full path or wildcard name), and must take as little processing power as possible. It is meant to be run on hundreds of Unix systems that we (the company I work for) support, and has be able to run on all those Unix systems (multiple OS, multiple platforms: AIX, HP-UX, Solaris and Linux) without us having to install or upgrade anything first. In other words, it has to run with standard libraries and binaries we can expect on all systems.
(Originally posted on Stack Overflow Stack Overflow)
Following my findings and suggestions in my other post How to exclude a list of full directory paths in find command on Solaris How to exclude a list of full directory paths in find command on Solaris, I have decided to write a Perl version of this script and see how I could optimize it to run faster than a native find command. So far, the results are impressive!
(Originally posted on Stack Overflow)
Following my findings and suggestions in my other post How to exclude a list of full directory paths in find command on Solaris, I have decided to write a Perl version of this script and see how I could optimize it to run faster than a native find command. So far, the results are impressive!
(Originally posted on Stack Overflow)
Following my findings and suggestions in my other post How to exclude a list of full directory paths in find command on Solaris, I have decided to write a Perl version of this script and see how I could optimize it to run faster than a native find command. So far, the results are impressive!
How can I further optimize this Perl script to findfor finding all unowned files and directories on Unix - How can I optimize further?
(Originally posted in theon Stack Overflow forum)
I'll take any hints, tips or recommendations you could give me.
Happy reading!
Perl script to find all unowned files and directories on Unix - How can I optimize further?
(Originally posted in the Stack Overflow forum)
I'll take any hints, tips or recommendations you could give me.
Happy reading!
How can I further optimize this Perl script for finding all unowned files and directories on Unix?
(Originally posted on Stack Overflow)
I'll take any hints, tips or recommendations you could give me.