Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

message of the day

Status
Not open for further replies.

redsevens

IS-IT--Management
Aug 11, 2000
40
US
Hello all, just curious about something...<br>I found the magic /etc/motd file (message of the day - displays when you log on from a console, and was wondering how to make that file rotate through a bunch of messages (maybe even randomly)? Probably a job for cron, and I'll write a script if I want to, but I was hoping maybe there was a builtin program for it. I'm collecting Simpsons ASCII art for the task...
 
You would need to set up a script to pick and display one of the text files.&nbsp;&nbsp;Once you have that working, edit /etc/profile and change the line that calls &quot;cat /etc/motd&quot; so that it calls your script instead. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top