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

Scripting • Re: Can the content written to the file be added?

$
0
0
Sorry, maybe you didn't understand what I meant! What I mean is adding content to a text file as the second line, is this feasible?

/file set [find name="result.txt"] contents=[/interface pppoe-client get [find name=pppoe-out1] password+"<CR><LF>"]
/file set [find name="result.txt"] contents=[/interface pppoe-client get [find name=pppoe-out2] password+"<CR><LF>"]
After running this command, there is always only one line of content in the file.

Statistics: Posted by rosa — Tue Jan 16, 2024 4:38 am



Viewing all articles
Browse latest Browse all 15172

Trending Articles