LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 04-01-2005, 09:12 AM   #1
iomari
Member
 
Registered: Aug 2003
Posts: 46

Rep: Reputation: 15
Angry 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.
 
Old 04-01-2005, 09:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
because that's the way it works.... it's just text, not a script.
 
Old 04-01-2005, 07:57 PM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
/etc/issue would be out of a job.
 
Old 04-01-2005, 08:35 PM   #4
julot
Member
 
Registered: Feb 2005
Location: Bogotá, Colombia
Distribution: Slackware
Posts: 36

Rep: Reputation: 15
I use /etc/profile and echo

Last edited by julot; 04-01-2005 at 11:14 PM.
 
Old 04-01-2005, 09:28 PM   #5
rnturn
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

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
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).
 
Old 04-03-2005, 04:43 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/motd skate Linux - Software 5 05-03-2006 08:44 AM
motd toothe Linux - Newbie 2 11-08-2005 04:02 PM
Motd wizex Slackware 6 09-05-2005 08:27 AM
motd Master Fox Linux - Software 2 08-25-2004 07:40 AM
Is there any MOTD software available besides /etc/motd? csif Linux - Software 1 04-24-2004 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration