Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 22505

Scripting • Re: script cannot running if file log.0.txt to big when tried to read each line

$
0
0
You can only read a small file into memory at once
Using the get command, it is possible to retrieve file contents only from files up to 60KB in size

Get file contents

Need to use “file/read” instead of “file/get”.

I’d probably try to do this kind of log digestion on a remote host instead of a router with limited memory/cpu.

Statistics: Posted by eltikpad — Fri Mar 07, 2025 7:55 pm



Viewing all articles
Browse latest Browse all 22505

Trending Articles