Home » Questions » Computers [ Ask a new question ]

Creating Custom Fortunes for the fortune Command

Creating Custom Fortunes for the fortune Command

Having trouble creating custom fortunes for the fortune command. I am running Mac OS X 10.6 and I used fink to install the fortune and fortune-mod command. Here is my process:

Asked by: Guest | Views: 39
Total answers/comments: 1
Guest [Entry]

"You run it from the text file, the .dat file is just the database. Both files need to be named the same and in the same directory. When you type fortune quotes it will look for quotes.dat.

so:

strfile quotes

will create quotes.dat. You can then run them like so:

fortune quotes

output:

[root@awesome ~]# fortune quotes
ARMED MEN ARE CITIZENS, UNARMED MEN ARE SUBJECTS!!!"