View previous topic :: View next topic |
Author |
Message |
chaoxifer n00b
Joined: 04 Jan 2010 Posts: 18 Location: South Korea
|
Posted: Sat Jul 19, 2014 6:36 am Post subject: [SOLVED]I want to make notification of log-on. |
|
|
Hi~ all. I just moved from arch linux to gentoo because of package manager.
Anyway, I want to make "notification" which prints out a message to console and terminal like freebsd.
Is it possible to get message from system when other user log-on the system?
I found solution about this, but there are no "wall" and "message" commands on gentoo linux. How can I make it in Gentoo Linux?
Last edited by chaoxifer on Sat Jul 19, 2014 10:47 am; edited 1 time in total |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sat Jul 19, 2014 6:42 am Post subject: |
|
|
Actually, they do exist. It is just that they are not installed by default. you want to add an entry in /etc/portage/package.use like this Code: | sys-apps/util-linux tty-helpers | then emerge -1 util-linux and you'll get the commands. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Jul 19, 2014 8:03 am Post subject: |
|
|
chaoxifer ...
zsh has a builtin called 'watch' that provides such notifications (see here).
Code: | # echo $SHELL
/bin/zsh
# watch=( khayyam )
# log
khayyam has logged on 1 from .
# chvt 2
login: khayyam
password:
# echo foo >/dev/null
khayyam has logged on 2 from . |
best ... khay |
|
Back to top |
|
|
chaoxifer n00b
Joined: 04 Jan 2010 Posts: 18 Location: South Korea
|
Posted: Sat Jul 19, 2014 10:46 am Post subject: Thanks for reply |
|
|
Thanks for reply.
I used to use zsh, but I didn't know about this.
zsh's 'watch' is more convenient, so I'll try it
Thank you 'The Doctor', 'khayyam'. |
|
Back to top |
|
|
|