NAME

run-cached - Run commands cached and uncached

SYNOPSIS

run-cached unix command
run-cached -c unix command

OPTIONS

-c

Print a cached result of the given command if available

DESCRIPTION

If called without the -c option, run-cached just runs the command passed to it and caches its result.

Called with the -c option afterwards, it will not run the command given, but print its cached results, given that the cache hasn't expired (which typically happens after 24 hours).

EXAMPLES

  # Fill the cache:
$ run-cached find /tmp -type f -print

  # Print the cached results:
$ run-cached -c find /tmp -type f -print

LEGALESE

Copyright 2007 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

2007, Mike Schilli <cpan@perlmeister.com>