Added script to rerun a command on a timer infinitely.
This commit is contained in:
11
Scripts/.local/scripts/poll
Executable file
11
Scripts/.local/scripts/poll
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
timer="$1"
|
||||||
|
shift 1;
|
||||||
|
command="$@"
|
||||||
|
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
sleep $timer
|
||||||
|
eval $command;
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user