Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrusme/cexec

Execute any command, cache its output and get cached output on subsequent execution
https://github.com/mrusme/cexec

cache cached caching command command-line command-line-tool exec execution timeout

Last synced: 2 months ago
JSON representation

Execute any command, cache its output and get cached output on subsequent execution

Awesome Lists containing this project

README

        

cexec
-----

**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):

```sh
cexec echo Hello World
```

Run a program and cache its output for 120 seconds:

```sh
cexec -t 120 echo Hello World
```