Page 1 of 1
store variable in memory
Posted: Fri Aug 07, 2009 3:24 am
by florachan
Hi This probably a dumb question but I can't find the answer anywhere , perhaps someone could enlighten me. I finally manage to get my gargoyle up and running .
I realise that it can do shell script and I wonder how can I save the variable to memory instead of text file (flash).
cheers,
Flora
Re: store variable in memory
Posted: Sun Aug 09, 2009 9:05 pm
by Eric
If you write a file to /tmp you're effectively writing to memory, since /tmp is mounted as a RAM disk. It's a lot faster than writing to flash and it doesn't run the risk of writing too often to the flash chip (which has a read/write max of 100,000). However, /tmp gets wiped every time you reboot since it's just memory.
Re: store variable in memory
Posted: Mon Aug 10, 2009 3:04 am
by florachan
Eric wrote:If you write a file to /tmp you're effectively writing to memory, since /tmp is mounted as a RAM disk. It's a lot faster than writing to flash and it doesn't run the risk of writing too often to the flash chip (which has a read/write max of 100,000). However, /tmp gets wiped every time you reboot since it's just memory.
cool , thanks . gonna try it tonite