From b8254aa97b482ed5cc5976846677501039783bfd Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Fri, 26 Feb 2016 17:05:45 -0500 Subject: [PATCH] working on screen command syntax --- chunkymap-regen-loop.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chunkymap-regen-loop.sh b/chunkymap-regen-loop.sh index e164616..6ed81e6 100644 --- a/chunkymap-regen-loop.sh +++ b/chunkymap-regen-loop.sh @@ -1,3 +1,6 @@ #!/bin/sh -echo type screen -r to reconnect with this screen -flock -n /var/run/chunkymap-loop.lockfile -c "screen -t chunkymapregen python /home/owner/minetest/util/chunkymap-regen.py" +echo type screen -r to reconnect with this screen +# -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