From a322a1807b1bdceb33987f86ac074b567c0460d8 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Fri, 26 Feb 2016 17:31:21 -0500 Subject: [PATCH] working on automation --- README.md | 6 +++++- chunkymap-regen-loop.sh | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f075016..d5513e7 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,11 @@ This program comes without any warranty, to the extent permitted by applicable l #NOTE: now that loop is default, cron job scripts, which now disable loop for compatibility with new version, are ALL optional and NOT recommended # ( to run only once, run: python chunkymap-regen.py --no-loop true ) * Change program options (or stop it) while looping or rendering by placing chunkymap-signals.txt in the same directory as chunkymap-regen.py (see chunkymap-signals example files) - - to maintain stability of your text editor, save the file, close it, then move/copy it to the directory (or save it as something else then rename it to chunkymap-signals.txt). + * to maintain stability of your text editor, save the file, close it, then move/copy it to the directory (or save it as something else then rename it to chunkymap-signals.txt). + * alternatively, in *nix do something like: + echo "refresh_map_enable:False" > ~/minetest/util/chunkymap-signals.txt + sleep 15s + echo "loop_enable:False" > ~/minetest/util/chunkymap-signals.txt * Has static html version of map (echo_chunkymap_table() php function) -- see example.php * Zoom in and out * optionally echo name of world that was detected by the scheduled py file diff --git a/chunkymap-regen-loop.sh b/chunkymap-regen-loop.sh index 6ed81e6..194dfe5 100644 --- a/chunkymap-regen-loop.sh +++ b/chunkymap-regen-loop.sh @@ -1,6 +1,9 @@ #!/bin/sh -echo type screen -r to reconnect with this screen +echo To reconnect with this screen type: +echo +echo sudo screen -r +echo # -S names the socket (-t only sets the title) #FAILS: flock -n /var/run/chunkymap-loop.lockfile -c "screen -S chunkymapregen python /home/owner/minetest/util/chunkymap-regen.py" #FAILS: screen -S chunkymapregen flock -n /var/run/chunkymap-loop.lockfile -c python /home/owner/minetest/util/chunkymap-regen.py -screen -S chunkymapregen python /home/owner/minetest/util/chunkymap-regen.py \ No newline at end of file +sudo screen -S chunkymapregen python /home/owner/minetest/util/chunkymap-regen.py \ No newline at end of file