Community discussions

MikroTik App
 
franek123
just joined
Topic Author
Posts: 2
Joined: Mon Oct 21, 2019 9:00 pm

How to pass variable from notification to global variable?

Mon May 08, 2023 12:24 pm

How to pass a variable from Dude notification to the script? I'm trying to set the value as a global variable but it doesn't work. Put $a gives an empty result.
notif.JPG
You do not have the required permissions to view the files attached to this post.
 
User avatar
stmx38
Long time Member
Long time Member
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: How to pass variable from notification to global variable?

Mon May 08, 2023 11:57 pm

Dude v6 - SMS notification through another ROS - using ssh-exec - step 5-6

Dude Notification
# Define Subject
:global notificationtext "Service [Probe.Name] on [Device.Name] is now [Service.Status]"

# Run script
system script run SMS-Notification-smspilot.ru

ROS Script
# Define subject
:global notificationtext "$notificationtext"

Who is online

Users browsing this forum: No registered users and 21 guests