Community discussions

MikroTik App
 
artie11
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Sun Feb 20, 2011 12:08 pm

Read files with Script

Sat Feb 26, 2011 8:28 am

The Scripting manual mentions that you can now read and write to files without size limitations in scripts.
From, Scripting Examples.
[/lua "local f=assert(io.open('/test.txt', 'w+')); f:write(newContent); f:close()"];

All I'm getting "bad command name"
I'm using both,
4.11 on a RB750
4.50 on X86 Device

Both are doing the same, Any Suggestions??
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Read files with Script

Sun Feb 27, 2011 12:04 am

Read that manual again, LUA is not yet working. We are planning to integrate it in future versions.

Who is online

Users browsing this forum: No registered users and 52 guests