which User initiated command
Posted: Friday 18 August 2017 14:51
Hi everyone,
I'm trying to find which User initiated a command.
For the moment I've got one switch by user to tell who has click on the button but I would like to get the user as it is in the log:
2017-08-18 09:00:50.686 User: philippe initiated a switch command (203/Portail/Off)
2017-08-18 12:17:14.628 User: Admin initiated a switch command (203/Portail/Off)
Is there any way (lua/blocky,python/other...) ?
The only thing I think about is a daemon looking at the log to find the command itialized and get the user, then do an action...
I hope someone already did this...
Please tell me I'm not alone...
Anoriel.
I'm trying to find which User initiated a command.
For the moment I've got one switch by user to tell who has click on the button but I would like to get the user as it is in the log:
2017-08-18 09:00:50.686 User: philippe initiated a switch command (203/Portail/Off)
2017-08-18 12:17:14.628 User: Admin initiated a switch command (203/Portail/Off)
Is there any way (lua/blocky,python/other...) ?
The only thing I think about is a daemon looking at the log to find the command itialized and get the user, then do an action...
I hope someone already did this...
Please tell me I'm not alone...
Anoriel.