From 30d2b996c02e310ee3634a347be52afe35438f4c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 23 Dec 2024 13:16:11 -0800 Subject: [PATCH] Update filemon.py --- modules/filemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/filemon.py b/modules/filemon.py index 1ea8fda..4bec6fd 100644 --- a/modules/filemon.py +++ b/modules/filemon.py @@ -72,7 +72,7 @@ def call_external_script(message, script="runShell.sh"): if not os.path.exists(script_path): logger.warning(f"FileMon: Script not found: {script_path}") return "sorry I can't do that" - output = os.popen(f"bash {script_path}").read() + output = os.popen(f"bash {script_path} {message}").read() return output except Exception as e: logger.warning(f"FileMon: Error calling external script: {e}")