Originally Posted by
strAlan
How do you put a real-time view of /var/log/auth.log in conky so I have a constant heads-up view of who's logged into the system? Kind of like:
Code:
cat /var/log/auth.log
but it doesn't end like cat would end - it would keep checking auth.log for new entries. I want to be able to only view entries that contain the word "accepted" or "failed" depending on my needs.
Probably something along the lines of:
Code:
${execi 30 cat /var/log/auth.log | grep -E "accepted|failed"}
Substitute 30 for whatever time you want it to run.
Bookmarks