Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Showing a MOTD with KDE
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sirprize
n00b
n00b


Joined: 23 Mar 2004
Posts: 15
Location: Ulm, Germany

PostPosted: Tue Apr 06, 2004 12:11 pm    Post subject: Showing a MOTD with KDE Reply with quote

Hi, I'm looking for a way to display administrative messages (Message of the Day) every time a user logs into KDE (currently 3.2.1).
It would be good if the program read the MOTD from /etc/motd, so I don't have to change it twice (for local KDE and for SSH/console logins).
A search in google showed me gtkmotd, which looks good - but I would prefer a KDE program. I also found a program called kmotd, but the site (http://www.guruz.de/kmotd.html) is dead, and on the main site, kmotd is absolutely not mentioned any more...

Any suggestions?
Thanks in advance
Michael
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Tue Apr 06, 2004 12:20 pm    Post subject: Reply with quote

kdialog --msgbox `cat /etc/motd`
Back to top
View user's profile Send private message
sirprize
n00b
n00b


Joined: 23 Mar 2004
Posts: 15
Location: Ulm, Germany

PostPosted: Tue Apr 06, 2004 4:57 pm    Post subject: Reply with quote

Thanks very much, that almost worked.
It cut the motd off at the first whitespace, because it saw that as multiple arguments.

It works perfectly with
Code:

kdialog --msgbox "`cat /etc/motd`"


Thanks for the help.
Michael
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum