LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2005, 04:53 PM   #1
artificialGekko
Member
 
Registered: Mar 2005
Posts: 77

Rep: Reputation: 15
those quotes after textmode-login


Slackware displays a random quote after I login in textmode. Where are those quotes stored?

Thanks!
 
Old 03-18-2005, 07:12 PM   #2
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 35
The program is called fortune, and the files are in /usr/share/games/fortunes .. enjoy.
 
Old 03-18-2005, 07:16 PM   #3
artificialGekko
Member
 
Registered: Mar 2005
Posts: 77

Original Poster
Rep: Reputation: 15
Pretty cool!

Hum, I renamed the files "fortunes" and "fortunes.dat" to back them up and made my own file "fortunes" with a couple of quotes in it and the dat-file with strfile -r... but somehow fortunes seems to use all of the files from the folder /usr/share/games/fortune to pick it's quotes from. Is there a way to tell it to use only one of them?
 
Old 03-18-2005, 07:21 PM   #4
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 35
man fortune

If you run fortune with a filename as parameter, it will only use fortunes from that file.
 
Old 03-18-2005, 08:34 PM   #5
artificialGekko
Member
 
Registered: Mar 2005
Posts: 77

Original Poster
Rep: Reputation: 15
It works fine when I run it manually, but after login it seems to run with some parameter making it use all the files in /usr/share/games/fortunes/ - I already tried moving all the files except for the one I want to use to a backup-folder but it came up with an error like "cannot open /usr/share/games/fortunes/bla"

I already searched through almost every single file in /etc manually to find the place where fortune is auto-run after login, but I cannot find it...
 
Old 03-19-2005, 07:39 AM   #6
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 35
/etc/profile.d/
 
Old 03-19-2005, 08:42 AM   #7
artificialGekko
Member
 
Registered: Mar 2005
Posts: 77

Original Poster
Rep: Reputation: 15
Awesome, theres it! Thanks...
 
  


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
Problems with quotes and double quotes Andruha Slackware 6 01-02-2010 05:44 PM
Using single quotes vs double quotes in PHP strings vharishankar Programming 6 07-11-2005 12:41 PM
i've lost my prompt login quotes/jokes... darksmiley Slackware 11 07-11-2005 07:37 AM
Random quotes on login, like Slackware lrt2003 Fedora 2 05-08-2004 10:57 PM
quotes at login csDraco_ Slackware 5 04-19-2003 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:05 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