diff options
author | Christian Hesse <mail@eworm.de> | 2024-03-12 18:01:39 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-03-12 18:02:58 +0100 |
commit | 43d0f9f371945b2f6178ba2de13227251683d414 (patch) | |
tree | 94094dbd2d7e2f650941df666b69ecc54df8ef6a | |
parent | 24a65b21316e8cad7778ca2fb91defa69dd479c6 (diff) | |
download | routeros-scripts-custom-next.tar.gz routeros-scripts-custom-next.tar.zst |
-rw-r--r-- | hello-world.rsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hello-world.rsc b/hello-world.rsc index ca125e7..e3ebf8a 100644 --- a/hello-world.rsc +++ b/hello-world.rsc @@ -12,12 +12,12 @@ :do { :local ScriptName [ :jobname ]; - :global LogPrintExit2; + :global LogPrint; :global ScriptFromTerminal; :global SendNotification2; :if ([ $ScriptFromTerminal $ScriptName ] = true) do={ - $LogPrintExit2 info $ScriptName ("Hello world!") false; + $LogPrint info $ScriptName ("Hello world!"); } else={ $SendNotification2 ({ origin=$ScriptName; subject="Hello..."; message="... world!" }); } |