achalagarwal / keystrokes

extensible and powerful framework for keystroke analysis
GNU General Public License v3.0
2 stars 0 forks source link

Daemonize #2

Closed achalagarwal closed 4 years ago

achalagarwal commented 4 years ago

Need to make the script active/online so that other ideas like live detection and correction/suggestion are plausible, also need to show notifications for when making too many mistakes too often

achalagarwal commented 4 years ago

Need to be able to read the /var/log file, what permissions are required for the script to be able to read that?

Is a better way to make logkeys generate a user-owned file?

achalagarwal commented 4 years ago

Create a cron job and an endless loop detecting keypresses in the file (Watchdog): class watchdog.events.PatternMatchingEventHandler(patterns=None, ignore_patterns=None, ignore_directories=False, case_sensitive=False)[source]

achalagarwal commented 4 years ago

Created a tail follow subprocess instead of watchdog as its faster 11799f132d824f8abf5c7af60fc20d9f4ae3a4f4

achalagarwal commented 4 years ago

Working -- basic daemon setup https://github.com/achalagarwal/keystrokes/commit/cb5f7f7b676286b481ca8a8c634aa953abedf753

Closing this issue, and creating a new issue (https://github.com/achalagarwal/keystrokes/issues/5) for live notifications