Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to BBS Software Chatter  <--  <--- Return to Home Page
   Networked Database  BBS Software Chatter   [518 / 864] RSS
 From   To   Subject   Date/Time 
Message   Sean Dennis    Andrew Haworth   A new project   May 7, 2018
 6:28 PM *  

Hello Andrew,

07 May 18 18:13 at you wrote to me:

 AH> That sounds really cool. What did the game do?

Check out http://outpostbbs.net/cheepware.html -- look for "The Magic Oracle".

All of my doors are DOS right now.  However, when the dust settles for me 
personally (I am in the middle of a ninety-day probation period in a new job), 
I'm very close to finishing up a working Linux-based Pascal doorkit.  I have 
released doors that run under Linux in a beta form but they are not true doors 
as they don't monitor time online nor use a FOSSIL but instead use stdio under 
Linux.

Here's the "door" if you're wondering.  The ANSWERS.DAT file is just a simple 
text files with a single line per answer.

The codes in the output lines are just ANSI color codes that are "bash-ified".

=== Cut ===
#!/bin/bash
FILE=answers.dat
if [ ! -f "$FILE" ]
then
  echo "ANSWERS.DAT not found!"
  echo "Program aborting."
  exit 1
fi

clear
echo -e "\e[92mThe Magic Oracle/BASH"
echo -e "\e[36mWritten by and (C)2017 Sean Dennis."
echo
echo -e "\e[96mWhat is your question for the Oracle?\e[37m"
read QUESTION
echo
echo -e "\e[92mYour question was:"
echo -e "\e[37m$QUESTION"
echo
echo -e "\e[95mAfter consulting the Oracle, his answer is...\e[33m"

# Pick and display a random line in ANSWERS.DAT.
sort --random-sort $FILE | head -n 1
echo -e "\e[39m"
=== Cut ===

The real trick is in the second to the last line. ;)

Later,
Sean

... A verbal contract isn't worth the paper it's written on.
--- GoldED+/LNX 1.1.5-b20170303
 * Origin: Outpost BBS * Limestone, TN, USA (1:18/200)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to BBS Software Chatter  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0809 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_oulmdc0ao3aqufncm4seg3tmv1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_oulmdc0ao3aqufncm4seg3tmv1, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_oulmdc0ao3aqufncm4seg3tmv1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0