Quantcast
Channel: WhiteByte
Viewing all articles
Browse latest Browse all 11

Wait in Bash Script Until Enough Memory is Free

0
0

Sometimes you need to wait until some amount of memory becomes free / available to proceed in a bash script.
For such cases MemAvailable in /proc/meminfo can be parsed. The following function checks this against some passed value and also allows to specify a timeout:

The post Wait in Bash Script Until Enough Memory is Free first appeared on WhiteByte.

Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images