Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-01-2005, 09:12 AM
|
#1
|
Member
Registered: Aug 2003
Posts: 46
Rep:
|
motd
Why can't I use env variables in motd like $USER or `date` or $HOSTNAME?
If I do, it shows exactly what I type.
|
|
|
04-01-2005, 09:36 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
because that's the way it works.... it's just text, not a script.
|
|
|
04-01-2005, 07:57 PM
|
#3
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
/etc/issue would be out of a job.
|
|
|
04-01-2005, 08:35 PM
|
#4
|
Member
Registered: Feb 2005
Location: Bogotá, Colombia
Distribution: Slackware
Posts: 36
Rep:
|
I use /etc/profile and echo
Last edited by julot; 04-01-2005 at 11:14 PM.
|
|
|
04-01-2005, 09:28 PM
|
#5
|
Senior Member
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,850
|
Quote:
/etc/issue would be out of a job.
|
Hee hee. But /etc/issue is used prior to getting logged in, motd after. No sense in telling the whole world that you've just upgraded all those software packages; make sure they're supposed to know about all those upgrades by making them go through the login process.
BTW, anyone know where 'issue" got that name? I've always used it to display the standard legal warnings before folks log in. Since "motd" is an acronym, wouldn't it be nice if they'd followed that convention when they came up with "issue". Perhaps something like: tcldwytrt ("The Company Legal Department Wants You To Read This") or maybe: aystbh ("Are You Supposed To Be Here?") I've actually put that one in "issue". At least until someone suggested that "Authorized Use Only" was more "professional" (but nobody pays attention to that phrase anymore; people actually noticed the one it replaced).
|
|
|
04-03-2005, 04:43 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
i've seen a number of places where motd is created per boot or per login, via the /etc/profile.d/ scripts. you can always add in a brand new script to the standard login that can do whatever you want
|
|
|
All times are GMT -5. The time now is 08:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|