Say I had a folder full of cat images. I'd like to create a symlink that points to a random cat from that folder and changes each time the symlink is accessed.
I suppose I could create a script that is constantly re-assigning the symlink to a different random cat image at N intervals. Could be a bit more ideal to only change it each time the symlink is accessed. Is there any simple way to get an on-accessed event for a sym-link to trigger some code?