I am trying to write output of my wifi snooper in the log file of the mikrotik. I have found how to write it to a txt file whcih I could then send off as an email but that would create and entire new process.
Is there a way to write it into log or can the log read the txt file i have created and put into memory.
Currently I have a script
/interface wireless snooper flat-snoop WLAN1 duration=20s
And I run it with the following
:local a [/system script get snoop source]; :local outFile “snoop1.txt”; execute script=$a file=$outFile
I have tried the below along with a few vartions with no luck
:local a [/system script get snoop source]; execute script=$a; log warning
Thank you