Switch to desktop version  
Find the memory size of the /usr partition and send an alarm - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: Find the memory size of the /usr partition and send an alarm (/thread-1659.html)



Find the memory size of the /usr partition and send an alarm - mic - 04-03-2021

Hello,

is it possible to read the existing memory of the /usr partition and send an alarm at a certain size?


Mic


RE: Find the memory size of the /usr partition and send an alarm - simon - 04-03-2021

Hi,

You can use the script :
SETSYS INF,"LOAD"
UsrFreeSize$ = GETSYS INF, "DskUsrFree"
PRINT UsrFreeSize$
to read the remaining /usr size (In KB)

Simon


RE: Find the memory size of the /usr partition and send an alarm - mic - 05-03-2021

@SIMON

Thank you, that's what I need.

mic