How to export the command results to text file?

I’ve fond answer in this topic of #15http://forum.mikrotik.com/t/help-with-retrieving-interface-wireless-scan-data/40099/1
Thx !

===============================================================================
Adrin

it is also possible to connect locally and save scan output to file. Like this:
/system ssh address=127.0.0.1 port=22 command=“/in wi scan wlan1 duration=8s” output-to-file=scan.txt

With ssh-keys it should connect without asking for password.

=================================================================================