mirror of
https://github.com/limosek/zaf.git
synced 2024-11-22 02:19:06 +01:00
18 lines
227 B
Plaintext
18 lines
227 B
Plaintext
|
#!/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
|
||
|
|