I only have just a second.
See this thread:
http://forum.mikrotik.com/t/sector-writes-how-big-is-a-sector/55752/1
Now, I’m not sure how much to trust that estimate of 100K writes per block, but even if we assume half the writes they claim in spec, we’re still talking a LOT of writes before your flash will die. [Even one-tenth will be a lot.]
I’ll see if I can dig up code where I’ve done this, but you should be able to do so do. Essentially you’ll just prefix the file name with a path+file name - where the path points to the flash drive.
One of the scripts I’ve written I started to include paths to the SD drive - so look in the comments - it may be in this script. If not, then look at my other posts. It may be in the netwatch script I’ve written, if not the dyndns one.
If I have time, I’ll try to dig it up - but again, you should be able to figure it out from the code/comments I have left.
[But lastly, none of my scripts write to flash unless something changes. Since your IP isn’t likely to change often, then the script will only be writing to flash when that happens. The stress of those changes is going to be exceedingly small. (Like, I’d guess, with a change every single day, the sun will likely be nearly running out of hydrogen to fuse by then.)
If you’re writing to flash too much, look elsewhere for a cause - it’s not my dyndns script unless there’s some really horrible bug I’ve missed and no-one else has noticed either…it could possibly be, but I don’t think so.]
-Greg