B
BEN RITCHEY
FamilyNet Newsgate
* An ongoing debate between Chaos Master and All rages on ...
The only one I've actually tested (runs under native DOS and Win98SE) is at
http://www.geocities.com/jasonpell/fortune.html
You'll need
http://www.geocities.com/jasonpell/fortune.zip (program, 53kB)
and
http://www.geocities.com/jasonpell/fortfile.zip (text fortunes, 1.4MB)
Unzip both to a path sub-dir, switch to this sub-dir then run "fortune /i"
to index the text database file.
=== Cut ===
Fortune Cookie Program
------------------------------------------------------------------------
In order to access the tgz and zip files on this page, you should
install [http://www.winzip.com/download.htm] Winzip.
[zipfiles/fortune.zip] Fortune 2.10 Fortune Cookie program.
[sources/fortune.tgz] C++ Source (Easily converted to ANSI C) You will
need [sources/mylib.tgz] Mylib to compile the fortune sources.
This program requires DPMI services. Suitable DPMI clients include
Windows 3.1x and '95. A freeware DPMI client is available on this
website. [zipfiles/cwsdpmi.zip] Click to download CWSDPMI.
Use: "fortune /!" to get help to create your own fortune data
files. The current version reports that Each quote should begin
with [nnnn] nnnn = the quote number. This was changed for version
2.10, but this section of the program was not updated. Since I
don't have a C or C++ environment anymore I cannot fix the error
and release a new version. So just be aware of it when using the /!
option.
Use: "fortune /?" for other help.
Use: "fortune /i" to generate an index!
[zipfiles/fortfile.zip] A fortune data file About 1.2MB Collected
from a variety of sources - I did not research these quotes I
merely collected quote\fortune source files and then joined, and
reformatted them to fit in with my program. I do not own the rights
to this file, and unfortunately I have misplaced the names of the
people who did collect the original material.
[sources/fortunix.tgz] Fortunix This source code can be compiled using
the GCC (Maybe CC too) Compiler for Linux/Unix to produce a working
version of my fortune program for unix/linux.
Unix/Linux HINT: You can use a soft link to the fortune binary to use a
different quote text file. For Example the command:
"ln -s fortune atheist" will allow the use of the atheist.txt file with
the same binary: instead of typing "fortune", you type "atheist", the
soft link "atheist -> fortune" will then run the fortune binary passing
"atheist" as argv[0].
See the fortunix.me file in the distribution for warranty and other
details.
The source is contained within a tarred, gzipped Archive. To extract it
use:
gzip -d fortunix.tgz; tar xvf fortunix.tar
IF YOU USE THE fortune.txt FILE FROM fortfile.zip OR atheist.txt FROM
atheist.zip REMEMBER THAT THESE FILES ARE DOS FORMATTED AND THUS WILL
HAVE A ^M AT THE END OF EACH LINE WHEN YOU GO TO USE THEM IN UNIX,
REMEMBER TO USE A dos2unix LIKE UTILITY TO GET RID OF THESE ^M BECAUSE
fortune -i WILL NOT WORK.
Undos
[sources/undos.html] undos: A small bourne shell script that will
remove ^M from a text file in unix.
Java Version of Fortune Cookie Program
[sources/Fortune.java] Fortune.java A very pedestrian conversion of
the unix version of fortune, "fortunix". No longer supports the QFJMP
header for the fortune cookie file. Only requires a % to seperate each
quote. See Fortune.java for more information.
------------------------------------------------------------------------
[programs.html#fortprog] Return to Programs page
------------------------------------------------------------------------
[mailto:[email protected]]
------------------------------------------------------------------------
=== Cut ===
--
Be well,
: Ben aka cMech http://bellsouthpwp.net/c/m/cmech617/
:
+ WildCat! Board 24/7 (337) 232-4155 33.6kBps 8,N,1
--- GoldED+/DPMI32 v1.1.5-040330 r0405
# Origin: FamilyNet - The Positronium Repository (8:8/337)
FamilyNet <> Internet Gated Mail
http://www.fmlynet.org
* An ongoing debate between Chaos Master and All rages on ...
CM | I have Cygwin, but it is overkill for just the 'fortune' program.
CM | Therefore I thought there could be a 'standalone' version of this
CM | program.
The only one I've actually tested (runs under native DOS and Win98SE) is at
http://www.geocities.com/jasonpell/fortune.html
You'll need
http://www.geocities.com/jasonpell/fortune.zip (program, 53kB)
and
http://www.geocities.com/jasonpell/fortfile.zip (text fortunes, 1.4MB)
Unzip both to a path sub-dir, switch to this sub-dir then run "fortune /i"
to index the text database file.
=== Cut ===
Fortune Cookie Program
------------------------------------------------------------------------
In order to access the tgz and zip files on this page, you should
install [http://www.winzip.com/download.htm] Winzip.
[zipfiles/fortune.zip] Fortune 2.10 Fortune Cookie program.
[sources/fortune.tgz] C++ Source (Easily converted to ANSI C) You will
need [sources/mylib.tgz] Mylib to compile the fortune sources.
This program requires DPMI services. Suitable DPMI clients include
Windows 3.1x and '95. A freeware DPMI client is available on this
website. [zipfiles/cwsdpmi.zip] Click to download CWSDPMI.
Use: "fortune /!" to get help to create your own fortune data
files. The current version reports that Each quote should begin
with [nnnn] nnnn = the quote number. This was changed for version
2.10, but this section of the program was not updated. Since I
don't have a C or C++ environment anymore I cannot fix the error
and release a new version. So just be aware of it when using the /!
option.
Use: "fortune /?" for other help.
Use: "fortune /i" to generate an index!
[zipfiles/fortfile.zip] A fortune data file About 1.2MB Collected
from a variety of sources - I did not research these quotes I
merely collected quote\fortune source files and then joined, and
reformatted them to fit in with my program. I do not own the rights
to this file, and unfortunately I have misplaced the names of the
people who did collect the original material.
[sources/fortunix.tgz] Fortunix This source code can be compiled using
the GCC (Maybe CC too) Compiler for Linux/Unix to produce a working
version of my fortune program for unix/linux.
Unix/Linux HINT: You can use a soft link to the fortune binary to use a
different quote text file. For Example the command:
"ln -s fortune atheist" will allow the use of the atheist.txt file with
the same binary: instead of typing "fortune", you type "atheist", the
soft link "atheist -> fortune" will then run the fortune binary passing
"atheist" as argv[0].
See the fortunix.me file in the distribution for warranty and other
details.
The source is contained within a tarred, gzipped Archive. To extract it
use:
gzip -d fortunix.tgz; tar xvf fortunix.tar
IF YOU USE THE fortune.txt FILE FROM fortfile.zip OR atheist.txt FROM
atheist.zip REMEMBER THAT THESE FILES ARE DOS FORMATTED AND THUS WILL
HAVE A ^M AT THE END OF EACH LINE WHEN YOU GO TO USE THEM IN UNIX,
REMEMBER TO USE A dos2unix LIKE UTILITY TO GET RID OF THESE ^M BECAUSE
fortune -i WILL NOT WORK.
Undos
[sources/undos.html] undos: A small bourne shell script that will
remove ^M from a text file in unix.
Java Version of Fortune Cookie Program
[sources/Fortune.java] Fortune.java A very pedestrian conversion of
the unix version of fortune, "fortunix". No longer supports the QFJMP
header for the fortune cookie file. Only requires a % to seperate each
quote. See Fortune.java for more information.
------------------------------------------------------------------------
[programs.html#fortprog] Return to Programs page
------------------------------------------------------------------------
[mailto:[email protected]]
------------------------------------------------------------------------
=== Cut ===
--
Be well,
: Ben aka cMech http://bellsouthpwp.net/c/m/cmech617/
:
+ WildCat! Board 24/7 (337) 232-4155 33.6kBps 8,N,1
--- GoldED+/DPMI32 v1.1.5-040330 r0405
# Origin: FamilyNet - The Positronium Repository (8:8/337)
FamilyNet <> Internet Gated Mail
http://www.fmlynet.org