This is a port of the same fortune program which is distributed with RedHat Linux. I made only very minor changes to the source. Specifically, I added a few #include statments, explicitly specified to the compiler that certain libraries be linked (the '-l' statements in the makefile), and placed some additional close() and open() functions in the code to make sure that too many files were not simultaneously open. Also, I altered the regular expression handling to use the library provided with EMX (hence the -lregexp in the makefile, and some slightly altered #defines in the source). This port works in an xterm under XFree86/OS2. It is also well-used by the 'marquee' and 'nose' screen savers under XFree, at least on my system. I presume that you unzipped this into a temporary directory. The absolute fastest way to make this work is to do a "move unix \", and then copy fortune.exe to someplace in your path. I include the file fortune.c, which is not the entirety of the distribution I used. For the full attributions, credits, READMEs, etc., you probably ought to download the full source yourself. I got it from I include fortune.c because it is the only file I changed, and because you need to recompile it if you want to change the default location of the fortune files. Needed at compile time are also the files strfile.h and pathnames.h, both of which are included as well. I only know that the files, as provided, will compile under emx/gcc on my system, and presumably yours as well. I know nothing about using a different compiler. The default location of the fortune files is specified at compile time in the file pathnames.h, which should be self-explanatory. The included makefile has the necessary compiler switches (and some unnecessary ones). Also included is fortune.6, which is a man page. If you haven't gotten the port of 'man', you might want to, or you can page through the manfile in ASCII, which is readable but not pretty. If you want to create your own fortune files, you either have to port the utility programs which came with the distribution (I got them to compile but they were buggy on OS/2 and I didn't want to hack them), or find a Linux box (this is what I did). However, once created, the same files should work with both the Linux version and this version of the program (they work for me). I have done only minimal testing, but everything seems to work as it should. I use this port on my system, and I haven't seen any nasty behavior from it. However, as all the other disclaimers mention, everything is provided AS-IS, and you use it at your own risk. I am not liable for anything good or bad that happens to you as a result of using this port. Although I personally see absolutely no reason why this program should format your hard drive, if it does don't sue me. If you're offended by the fortunes, don't sue me. If you're having a bad day (or a good one), don't sue me. You get the point.