hiii all
i try
[admin@MikroTik] > [/lua "local f=assert(io.open('/test.txt', 'w+')); f:write(newContent); f:close()" ];
bad command name lua (line 1 column 3)
[admin@MikroTik] > [:lua "require 'customprint'\n print('hello from custom print function')"]
syntax error (line 1 column 32)
i create the “/lua” folder in files and have the file “customprint.lua” same this url:
http://wiki.mikrotik.com/wiki/Scripting-examples#Include_custom_function_in_another_script
how can fix this problen ???