Not sure if everyone's familiar with inotify - a Linux feature for monitoring parts of a filesystem for changes.<div><br></div><div>As an example, the following perl (could be bash but I always forget the control structure syntax, due to infrequent use) script is something I hacked together to get the hang of inotify-tools, which are a command-line interface to Linux's inotify features.<div>
<br></div></div><div>Each type a 'create' event occurs within the ~/.angband/Angband filesystem, a complete copy of that directory is made to a date and timestamped backup directory.</div><div><br></div><div>This would (I suppose) let you resurrect dead angband* characters :)</div>
<div><br></div><div>Trivial but potentially worth sharing!</div><div><br></div><div>===================</div><div><div>while(1) {</div><div> `inotifywait -e create -r ~/.angband/ 1>/dev/null 2>/dev/null`;</div><div>
 `cp -R ~/.angband/Angband/ ~/.angband/\`date '+%Y-%m-%d.%H:%M:%S'\``;</div><div>}</div></div><div>===================</div><div><br></div><div>* See <a href="http://en.wikipedia.org/wiki/Angband_(video_game)">http://en.wikipedia.org/wiki/Angband_(video_game)</a></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>- Walter</div>