Page 4 of 4

Re: Custom MOTD - Message of the Day

Posted: Tue Jul 10, 2018 10:01 am
by Raceman
Anyone?

Re: Custom MOTD - Message of the Day

Posted: Wed Jul 11, 2018 4:16 pm
by DougieLawson
ps -ef | grep 'ss[h]d:.*@pts' finds any ssh logins.

Re: Custom MOTD - Message of the Day

Posted: Thu Jul 12, 2018 10:35 pm
by Raceman
DougieLawson wrote:
Wed Jul 11, 2018 4:16 pm
ps -ef | grep 'ss[h]d:.*@pts' finds any ssh logins.
Thanks

But it didnt work.

Re: Custom MOTD - Message of the Day

Posted: Sat Jun 15, 2019 10:38 pm
by seanda21
Loved this (a little late to the party of course). However, I also didn't like how it killed my bash prompt colour screen :D

I also moved this up the chain so it doesn't run in the ~/.bash_profile file
It now runs in /etc/update-motd.d/01-custom, and works like a charm

Here is details on how I did it - https://sbs.seandaniel.com/2019/06/upda ... td-on.html

And here is my final output:
Image

Enjoy

Re: Custom MOTD - Message of the Day

Posted: Sun Jun 16, 2019 7:43 am
by Ernst
seanda21 wrote:
Sat Jun 15, 2019 10:38 pm

Here is details on how I did it - https://sbs.seandaniel.com/2019/06/upda ... td-on.html
There is something missing in your script, instead of

Code: Select all

rest < /proc/loadavg
it should be

Code: Select all

read one five fifteen rest < /proc/loadavg