Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: xrcs Up: Code management Previous: squiz

Subsections



tract

Report the age of a file or directory.

Synopsis

tract [-a|-c|-m] [-q#] [-s] <file|directory>

Description

tract reports the age of a file or directory; by default it reports the time in seconds since the file or directory was last modified. In query mode it can be used to determine if a file or directory is older than a specified number of seconds.

Options

-a
Report time since last access.

-c
Report time since last status change.

-m
Report time since last modification (default).

-q#
Return a successful exit status if the file is older than the specified number of seconds. Nothing is reported on stdout.

-s
Report the time in sexagesimal (h:m:s) format (default is seconds).

Diagnostics

Status return values
-1: In query mode, the file is younger than the specified timespan.
0: Success.
1: Usage error.
2: File access error.

Examples

The following reports the elapsed time in h:m:s format since tract was installed:

   tract -s `which tract`

See also

The unix manual page for find(1).

Author

Original: 1995/02/21 by Mark Calabretta, ATNF


next up previous contents index
Next: xrcs Up: Code management Previous: squiz   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15