V
V
Vladislav2015-11-24 16:42:18
linux
Vladislav, 2015-11-24 16:42:18

Is there something like Observable in linux that can watch for changes?

Is there some kind of function in Linux so that you can monitor file changes, or better, immediately the result of some command?
For example, //small pseudo -code
with the users command we get all users authorized in the system
onChange(users, () -> showMessage("New user logged in \ or logged out"))
Something like this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
romy4, 2015-11-24
@romy4

php.net/manual/en/function.inotify-add-watch.php

K
Konkase, 2015-11-24
@Konkase

What?
What would you like? Monitor file changes or receive a message about user authorization?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question