Anyway, went to implement it in Mystic Pi BBS and did get logoff.ans
to work as G00r00 had intended, display at '2400' baud, with the random file thing as documented:
+ Mystic's random display file system now also will include letters a-z,
allowing up to 36 randomly selected display files per filename, up
With this solution, after a while you will run out of letters :) Also its some work to do the renaming, specially when you will refresh the GitHub directory, it will download the files with the old names... maybe a conflict in there... perhaps.
A better approach is to make a BASH/Batch file that will get all files listed in the directory, choose one randomly and then copy it to the
Text directory of the Theme, with the name logoff.ans. This way you
don't have to do the renaming even the folder (someday) gets hundreds of adverts.
A better approach is to make a BASH/Batch file that will get all files listed in the directory, choose one randomly and then copy it to the Text directory of the Theme, with the name logoff.ans. This way you don't have to do the renaming even the folder (someday) gets hundreds of adverts.
I threw together a VERY simple shell script that AFAIK got pulled in to take all the advert ANSI's and put them in a directory fiel files named BBSAD###.ans. I realize e.g. Mystic wants a different format, but the general idea is there: A script could have a couple params, e.g. pattern for filename such as "AD###.ANS" or "BBSAD.###"... so on, and the script could do the rest.
With a BASH script you don't have to rename any files. The good with this is that you can know which file, belongs to which BBS... by renaming them you loose that convenience... just in case ;)
Sure, you can do a bash script to shuffle -> single file, but then you need to run this on a cron/schedule/event/whatever. It sounds like for some systems this may be required though.
there is no need for Cron jobs, just a command inside a BBS menu.
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 31 |
Nodes: | 8 (0 / 8) |
Uptime: | 200:38:14 |
Calls: | 2,083 |
Calls today: | 1 |
Files: | 11,139 |
Messages: | 947,928 |