I feel like you could do this without a database using the Linux kernel inotify API. Every time a file is accessed trigger an increment. It’s too beautiful of a day outside to try this right now but an interesting brain teaser!
What about dnotify? I think that predated inotify. If so, I think it has the ability to notify a process when a file was accessed, so could fill a similar role.
Comments
I feel like you could do this without a database using the Linux kernel inotify API. Every time a file is accessed trigger an increment. It’s too beautiful of a day outside to try this right now but an interesting brain teaser!
Pretty sure Linux didn't have inotify then.
Probably a CGI script updates a counter in a file.
Did FUSE exist yet? You could hack it up in userspace...
(Have the HTML on a FUSE filesystem, and every time it gets a read it updates the HTML)
FUSE's announcement: https://lwn.net/2001/1115/a/fuse.php3
Can confirm, that's how it was done. A simple text file.
What about dnotify? I think that predated inotify. If so, I think it has the ability to notify a process when a file was accessed, so could fill a similar role.
That's what laptops are for!
If you're just sitting outside, you may as well be inside.
My mood says otherwise.
Only if your laptop has some e-ink/e-paper tech screen really.
Sitting in the shade works for me, but yes, e-ink or STN works well (decades-old tech).
Would be flying with all the bots trying to hack Wordpress bugs