run-cached - Run commands cached and uncached
run-cached unix command run-cached -c unix command
Print a cached result of the given command if available
If called without the -c option, run-cached just runs the command passed to it and caches its result.
-c
run-cached
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).
# Fill the cache: $ run-cached find /tmp -type f -print # Print the cached results: $ run-cached -c find /tmp -type f -print
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.
2007, Mike Schilli <cpan@perlmeister.com>
To install IPC::Cmd::Cached, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IPC::Cmd::Cached
CPAN shell
perl -MCPAN -e shell install IPC::Cmd::Cached
For more information on module installation, please visit the detailed CPAN module installation guide.