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) ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| -----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----- |
| |||
| 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." |
| ||||
| 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. |