D
D
Dead Sea2017-05-11 21:01:00
linux
Dead Sea, 2017-05-11 21:01:00

Is there an event emitter in Linux and where can I learn more about them?

I need to include a script when ip changes. Where exactly to catch the event and is it possible to hang the handler using bash?
What Linux events generate events (you can just link to the materiel)?
You can just hang a python/nodejs script in a loop to check some log file or command output, but wouldn't that be a waste of CPU resources, or do any Linux event handlers act like that anyway?
I want to efficiently process events, changes in directories, files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2017-05-11
@Dead_Sea

changes in directories, files

https://en.wikipedia.org/wiki/Inotify

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question