954,167 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Setting up "fortune" for logins ...

I want to set up the ever popular fortune program to display a random fortune each time a user logs in. The program is installed, but which config file do I need to edit to get the program to automatically run after each successful login?

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

ok ... got it! In that bash config thingie file (more specifically, the last line of .bash_profile) in my home directory ... I just typed /usr/games/fortune and it worked :)

My problem now is trying to figure out these really stupid, corny jokes. I *would* say they just went over my head, but everyone I ask doesn't have a clue what they mean either. Oh well!

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: