Script problem

Hi all


I’m new in scripts and i want to explain something

I need to save one interface throughput in a global variable called X. I can do this already :smiley: but I need to send an e-mail (I can do this too), but i need to send the value of X in the body of e-mail or maybe in a file or something, can someone help me?

thanks and regards

If you’re asking in the Scripting section you might get better responses :slight_smile:

http://forum.mikrotik.com/viewforum.php?f=9

This is an excerpt from my script to email the actual IP of my hotspot and should give you an idea:

:local currentIP [:pick $result $startLoc $endLoc]
:set savedoldIP $previousIP

/tool e-mail send from=hotspot@mydomain.com to=info@mydomain.com subject=“New DSL IP $strDate $strTime $strSystemName” body=“Old IP: $savedoldIP, New IP: $currentIP”