Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Display a random fortune in the login window' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display a random fortune in the login window
Authored by: leknor on Nov 18, '04 12:23:46PM
If you don't wish to install fink a Mac OS X package of fortune can be found at: http://dsandler.org/soft/macosx/message.php

You'll also need to change the path in the script from /sw/bin/fortune to /usr/bin/fortune .

Also, that version doesn't support the -n switch as the fink version seems to. You can still use -s for short fortunes only. See `man fortune` once you've installed the package for more switches.

[ Reply to This | # ]

Display a random fortune in the login window
Authored by: mattia on Nov 18, '04 01:36:29PM
Notwithstanding the suggested remedy to the double quotes thing, I'm still unable to 'fortune' quotes containing double quotes. Whether I use my fortunes or the system supplied ones, whenever I run the command I get the following error

2004-11-18 08:22:57.703 defaults[1104] Could not parse: "
        The control code for all beginning programmers and those who would
        become computer literate.  Etymologically, the term has come down as
        a contraction of the often-repeated phrase "ascii and you shall
        receive."
                -- Robb Russon".  Try single-quoting it.
I'm not that fluent with shell substitution of single or doiuble quotes, but I've made some unsuccessful attempts to over-quote the expression. Is is just me or has somebody else run into the same problem? Mattia

[ Reply to This | # ]
Display a random fortune in the login window
Authored by: jamiebah on Nov 21, '04 10:51:09AM

This doesn't work if you login as a "standard" user. Try to run the command from terminal. You won't have permissions, now login as an admin user and it will work.

I created a seperate account for admin purposes and my normal account is a "standard" account for security purposes...



[ Reply to This | # ]