8
8
82822019-02-06 15:31:16
linux
8282, 2019-02-06 15:31:16

Is there an analogue of the last command?

Is there an analogue of the last command with notification of events by mail?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Radjah, 2019-02-06
@8282

Read about PAM. There, it seems, you can do a reaction to the user login and logout event.

K
ky0, 2019-02-06
@ky0

Script that sends an email when there are new entries.

A
Alexander Chernykh, 2019-02-06
@sashkets

alternatively
last -n 20 | mail -s last [email protected]
this line in cron

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question