cexec

cexec is an open source command line tool that can run other commands and cache their output for a custom amount of time, so that subsequent runs will return the cached output instead of running the command again.

Project

Cached Exec

cexec allows to run commands and cache their output for a specific amount of time, so that re-running the command won’t actually run it but instead return the cached output.

cexec will use the path specified in XDG_CACHE_HOME to store its cache. Please make sure it is exported in your ENV.

Examples

Run a program and cache its output for 60 seconds (default setting):

cexec echo Hello World

Run a program and cache its output for 120 seconds:

cexec -t 120 echo Hello World

Updates GitHub


Enjoyed this? Support me via Monero, Bitcoin, Lightning, or Ethereum!  More info.