home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
431.lha
/
Randpic_v1.0
/
Randpic.doc
< prev
next >
Wrap
Text File
|
1990-11-05
|
3KB
|
81 lines
******************************
* *
* Randpic v1.0 *
* *
* Author: J. L. Holmes *
* *
******************************
Thankyou for trying Randpic v1.0. This command picks randomly
from a number of items in a text file and then outputs its choice
to another file that you specify. One suggestion for using Randpic
is to place it in your startup-sequence to customize boot up. It
could, perhaps, choose from multiple `say' commands to make startup
friendlier, but use your imagination.
The command is used in the following format:
Randpic <in_filename> <##> <out_filename>
Where
<in_filename> is the path name to a text file with commands
written just like you would type them from CLI (similar to your
s/startup-sequence). There are only two things to consider when
making this file... One, no single command can be more than 80
characters long, and two, the EOF marker must reside on its own
line (i.e There must be one more blank line after the last item
in your list).
<##> is a positive integer. This is the maximum number of
commands Randpic is to choose from. If you give this argument a
value greater than the total number of commands in your
<in_filename> it will still be possible for Randpic to pick a
value in that range, but if Randpic chooses a value higher than
the total number of commands, it will simply choose the last
command.
<out_filename> is the path name to the text file Randpic's
choice will be written to. You should be very careful in this,
because if a file already exists with the same path name it will
be replaced by the new file Randpic creates. Once <out_filename>
has been created, you can execute it like any other text file.
NOTES:
Don't worry if your command is more than 80 characters...
nothing will crash, but you'll just get the first 80 characters
of the command, which in itself may cause a problem.
Future versions of Randpic will be able to execute the
commands by itself without needing an <out_file>.
The program is released into the Public Domain, so use it as
you wish. ALL I ASK IS THAT THIS DOCUMENT FILE BE INCLUDED WITH
ANY COPIES TO ANOTHER PARTY.
You can rename Randpic to anything you want.
This program does not eat any memory.
As far as I know there are no bugs, but if you find any, please
report them by leaving me mail at:
BIX
Nickname: j.l.
-or-
Amiga Lore BBS
Tallahassee, Florida
(904) 561-6708
c/o Jerry Holmes
Or call me at (904) 222-6177.
Thanx and enjoy.