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}")