Skip to main content
Code Review

Return to Question

added 1 character in body; edited title
Source Link
toolic
  • 15k
  • 5
  • 29
  • 208

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.

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

(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!

deleted 28 characters in body; edited title
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

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.

edited tags
Link
Mathieu Guindon
  • 75.5k
  • 18
  • 194
  • 467
Loading
Tweeted twitter.com/#!/StackCodeReview/status/128638238205296641
Source Link
Loading
lang-perl

AltStyle によって変換されたページ (->オリジナル) /