Unix Technical Forum

Quote of the day when I log in?

This is a discussion on Quote of the day when I log in? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Whenever, I log in I get a quote of the day from my slackware system. My questions are: a) ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 05:37 PM
anonymous
 
Posts: n/a
Default Quote of the day when I log in?

Whenever, I log in I get a quote of the day from my slackware system.
My questions are:

a) What is the file path from which these quotes are selected?
b) How a quote is selected to be displayed?
c) Probably there is a script file that runs another script/program
that selects and displays the quote.
Where is the login script located?

I tried to search the web but without avail. Any help will be
appreciated.

Many thanks,

A.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 05:37 PM
Lew Pitcher
 
Posts: n/a
Default Re: Quote of the day when I log in?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

anonymous wrote:
> Whenever, I log in I get a quote of the day from my slackware system.
> My questions are:
>
> a) What is the file path from which these quotes are selected?


/usr/share/games/fortunes

> b) How a quote is selected to be displayed?


Semi-randomly, depending on the invocation parameters for the fortune
binary. Read the fortune(6) manpage ("man 6 fortune") for the details

> c) Probably there is a script file that runs another script/program
> that selects and displays the quote.
> Where is the login script located?


In current Slackware systems, /etc/profile.d/bsd-games-login-fortune.*sh

In older Slackware systems (9.0 or older, I believe), /etc/profile


> I tried to search the web but without avail. Any help will be
> appreciated.
>
> Many thanks,
>
> A.
>




- --

Lew Pitcher, IT Specialist, Corporate Technology Solutions,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEYKwWagVFX4UWr64RApI/AJwNkgiM82rqUMzTan98e+lpDLaiHgCcC/XQ
7gvXE82VhZ1E3WlzUPXxgBI=
=Eg2l
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 05:37 PM
The Eighth Doctor
 
Posts: n/a
Default Re: Quote of the day when I log in?

In article <r_18g.14715$M31.79087@news20.bellglobal.com>,
Lew.Pitcher@tdsecurities.com says...
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>anonymous wrote:
>> Whenever, I log in I get a quote of the day from my slackware system.
>> My questions are:
>>
>> a) What is the file path from which these quotes are selected?

>
>/usr/share/games/fortunes
>
>> b) How a quote is selected to be displayed?

>
>Semi-randomly, depending on the invocation parameters for the fortune
>binary. Read the fortune(6) manpage ("man 6 fortune") for the details
>
>> c) Probably there is a script file that runs another script/program
>> that selects and displays the quote.
>> Where is the login script located?

>
>In current Slackware systems, /etc/profile.d/bsd-games-login-fortune.*sh
>
>In older Slackware systems (9.0 or older, I believe), /etc/profile
>
>
>> I tried to search the web but without avail. Any help will be
>> appreciated.
>>
>> Many thanks,
>>
>> A.
>>

>
>
>
>- --
>
>Lew Pitcher, IT Specialist, Corporate Technology Solutions,
>Enterprise Technology Solutions, TD Bank Financial Group
>
>(Opinions expressed here are my own, not my employer's)
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.2.2 (MingW32)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>iD8DBQFEYKwWagVFX4UWr64RApI/AJwNkgiM82rqUMzTan98e+lpDLaiHgC

cC/XQ
>7gvXE82VhZ1E3WlzUPXxgBI=
>=Eg2l
>-----END PGP SIGNATURE-----


Hello!
Lew your correct. On this system, I have it setup to do that, and promptly present
me with a quote from its Star Trek collection. Also one from a Star Wars collection
that the Fresh Meat service found for me. I still haven't worked out the logic behind
the linuxcookie methods, but its working so I left it alone.

As he stated, on 10.0 and later releases its listed someplace inside the /etc/profile.d
location. Look for ones labeled "bsd-games-login-fortune.*sh" and pick the one for
your chosen shell.
--
GCL drwho8 atsign att dot net
"This signature supports Google Groups because it contains postings that are nearly
as old as the people who manage it, and probably older."

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 05:37 PM
anonymous
 
Posts: n/a
Default Re: Quote of the day when I log in?


The Eighth Doctor wrote:
> In article <r_18g.14715$M31.79087@news20.bellglobal.com>,
> Lew.Pitcher@tdsecurities.com says...
> >
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >anonymous wrote:
> >> Whenever, I log in I get a quote of the day from my slackware system.
> >> My questions are:
> >>
> >> a) What is the file path from which these quotes are selected?

> >
> >/usr/share/games/fortunes
> >
> >> b) How a quote is selected to be displayed?

> >
> >Semi-randomly, depending on the invocation parameters for the fortune
> >binary. Read the fortune(6) manpage ("man 6 fortune") for the details
> >
> >> c) Probably there is a script file that runs another script/program
> >> that selects and displays the quote.
> >> Where is the login script located?

> >
> >In current Slackware systems, /etc/profile.d/bsd-games-login-fortune.*sh
> >
> >In older Slackware systems (9.0 or older, I believe), /etc/profile
> >
> >
> >> I tried to search the web but without avail. Any help will be
> >> appreciated.
> >>
> >> Many thanks,
> >>
> >> A.
> >>

> >
> >
> >
> >- --
> >
> >Lew Pitcher, IT Specialist, Corporate Technology Solutions,
> >Enterprise Technology Solutions, TD Bank Financial Group
> >
> >(Opinions expressed here are my own, not my employer's)
> >-----BEGIN PGP SIGNATURE-----
> >Version: GnuPG v1.4.2.2 (MingW32)
> >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> >iD8DBQFEYKwWagVFX4UWr64RApI/AJwNkgiM82rqUMzTan98e+lpDLaiHgC

> cC/XQ
> >7gvXE82VhZ1E3WlzUPXxgBI=
> >=Eg2l
> >-----END PGP SIGNATURE-----

>
> Hello!
> Lew your correct. On this system, I have it setup to do that, and promptly present
> me with a quote from its Star Trek collection. Also one from a Star Wars collection
> that the Fresh Meat service found for me. I still haven't worked out the logic behind
> the linuxcookie methods, but its working so I left it alone.
>
> As he stated, on 10.0 and later releases its listed someplace inside the /etc/profile.d
> location. Look for ones labeled "bsd-games-login-fortune.*sh" and pick the one for
> your chosen shell.
> --
> GCL drwho8 atsign att dot net
> "This signature supports Google Groups because it contains postings that are nearly
> as old as the people who manage it, and probably older."



Many thanks for help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com