Skip to content

EGRID website

Sections
Personal tools
You are here: Home » Software » EGRID System Administration commands » EGRID release 1 » egrid-print-dirhier

egrid-print-dirhier

Output directory tree for egrid-copy-dirhier to read.



NAME

egrid-print-dirhier - Output directory tree for egrid-copy-dirhier to read.


SYNOPSIS

egrid-print-dirhier [OPTIONS] DIR [DIR ...]

Outputs the directory trees whose roots are the supplied DIRs, in the format required by egrid-copy-dirhier for input.

Options:

-u, --update-cache
Update output cache even if it has not yet expired. This option is mutually exclusive with --cache-time.

-t, --cache-time SECONDS
If there is a cache file for DIR, output its contents instead of scanning the whole directory tree again. This is the default behaviour, with a cache time of 600 seconds. This option is mutually exclusive with --update-cache.

-d, --cache-dir DIR
Use DIR as a repository for output cache files. Defaults to /opt/egrid/var/cache/egrid-print-dirhier.

-s, --syslog FACILITY[:PRIORITY]
Log messages to syslog facility FACILITY (default: 'daemon'); if the optional PRIORITY is appended, then do not log messages whose priority is less than PRIORITY (default: 'notice').

-A, --args-from FILE
Read additional command-line arguments from FILE as if they were typed on the command-line.

--help
Print help text and exit

-V, --version
Print version number and exit


DESCRIPTION

This is a simple wrapper: for each directory DIR named on the command line, invokes find ... -type d -printf '%u:%g:%m:%p'. It also caches the output of this find command for 600 seconds (or the amount specified via the --cache-time option) for performance reasons, unless the --update-cache option is given.


BUGS

Looks for the standard commands find and cat in the system PATH; be especially careful when executing this program as root!

There is currently no way to pass options to 'find'.

The --verbose option does not yet report very much information.


DOWNLOAD

You can download RPM packages of the EGRID SE Tools from http://www.egrid.it/download/rpm/RPMS.egrid; Debian packages from http://www.egrid.it/download/deb/egrid.

You can browse the source code for this software from the EGRID CVS at http://www.egrid.it/cvs/middleware/se/


COPYRIGHT AND LICENSE

Copyright (c) 2004,2005 Riccardo Murri riccardo.murri@ictp.it for the EGRID project http://www.egrid.it/

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Created by manager
Contributors : Riccardo Murri
Last modified 2006-10-06 01:18
 

Powered by Plone

This site conforms to the following standards: