From 64e850217ad57714856617c82e48994da6989535 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 02:29:14 +0100 Subject: Fireup now starts in minimal mode. [#25] Fireup plugin takes advantage of new command line options to load simulations in minimal mode and already running. --- bin/plugins/fireup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/plugins/fireup.py b/bin/plugins/fireup.py index 7fe86ef..48391ff 100755 --- a/bin/plugins/fireup.py +++ b/bin/plugins/fireup.py @@ -9,7 +9,8 @@ Email: paul.t.oliver.design@gmail.com NOTE: REQUIRES TMUX TO WORK! Use this script to run one (or several) previously saved simulations in the -background. Each simulator will run inside a tmux session. +background. Each simulator will be started inside a tmux session, already +running and in minimal mode. Remember to give this file correct permissions (chmod +x). To use, call it followed by an autosave interval (mandatory) and the list of save-files to @@ -65,10 +66,10 @@ print("Firing up Salis simulations.") for fname in args.files: session = "salis-{}".format(fname).replace(".", "-") - salis_cmd = "{} load -f {} -a {}".format(salis, fname, args.auto) + salis_cmd = "{} -m -r load -f {} -a {}".format(salis, fname, args.auto) subprocess.run(["tmux", "new-session", "-d", "-s", session]) subprocess.run(["tmux", "send-keys", "-t", session, salis_cmd]) - subprocess.run(["tmux", "send-keys", "-t", session, "Enter", "Space"]) + subprocess.run(["tmux", "send-keys", "-t", session, "Enter"]) print("New tmux session '{}' is running '{}' in the background.".format( session, fname )) -- cgit v1.2.1