lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

how to detect system message

Thu Nov 27, 2014 10:34 pm

like wifi detected or bluetooth pairing request. all these system messages.

using python to detect system messages

User avatar
rpdom
Posts: 17174
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: how to detect system message

Fri Nov 28, 2014 7:38 am

Well, you could check the syslog file every few minutes, or you could use tail -f and run the output through a pipe, or you could look into rsyslog and change the config so that certain types of messages will trigger a program.

Return to “Python”