Community discussions

MikroTik App
 
viteralex
just joined
Topic Author
Posts: 11
Joined: Wed Dec 01, 2021 8:21 pm

Create file from script

Wed Nov 30, 2022 11:16 pm

Didn't find an answer so asking
Have a code
/file print file="newfile.txt"
:delay 5s
/file set "newfile.txt" contents="newContent"
This code executed differently on different devices. I checked 3 devices:
  1. 952Ui-5ac2nD
  2. 951Ui-2HnD
  3. RB3011UiAS
All devices have 6.49.6 firmware.
Devices 2 and 3 behaviour similary, as expected.
Device 1 doesn't create file if script run by schedule or with button "Run Script". And create file if script run from terminal
 
User avatar
diamuxin
Member
Member
Posts: 319
Joined: Thu Sep 09, 2021 5:46 pm
Location: Alhambra's City

Re: Create file from script

Thu Dec 01, 2022 12:19 am

In version 7.6 stable all my devices work OK.

BR.
 
viteralex
just joined
Topic Author
Posts: 11
Joined: Wed Dec 01, 2021 8:21 pm

Re: Create file from script

Thu Dec 01, 2022 9:53 am

I can't update all devices to v.7 just because of this bug. Or it's not a bug?
 
User avatar
diamuxin
Member
Member
Posts: 319
Joined: Thu Sep 09, 2021 5:46 pm
Location: Alhambra's City

Re: Create file from script

Thu Dec 01, 2022 9:56 am

Upgrade only the equipment that is not working properly and try again.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11968
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Create file from script

Thu Dec 01, 2022 8:04 pm

I can't update all devices to v.7 just because of this bug. Or it's not a bug?
The 1st device have flash memory, the other two have NAND memory.
 
viteralex
just joined
Topic Author
Posts: 11
Joined: Wed Dec 01, 2021 8:21 pm

Re: Create file from script

Thu Dec 01, 2022 9:23 pm

I can't update all devices to v.7 just because of this bug. Or it's not a bug?
The 1st device have flash memory, the other two have NAND memory.
Why it's matter?

Who is online

Users browsing this forum: ko00000000001, mtest001 and 26 guests