1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-14 14:39:06 +01:00
limosek-zaf/lib/zafcache

18 lines
227 B
Plaintext
Raw Normal View History

#!/bin/sh
. $(dirname $0)/preload.sh
help() {
zaf_err "$0 seconds cmd..."
}
seconds=$1
shift
[ -z "$*" ] && help
parms=$(echo $*|tr -d ' ')
if ! zaf_fromcache "$parms"; then
$@ | zaf_tocache_stdin "$parms" "$seconds"
fi