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 The International BBBS Support E...  <--  <--- Return to Home Page
   Networked Database  The International BBBS Support E...   [112 / 234] RSS
 From   To   Subject   Date/Time 
Message   Janis Kracht    Tony Comandini   Annoucements new files   December 20, 2016
 12:00 PM *  

Hi Tony,

> sorry if I ask too much but is a sort of doc add-on :-) How can I do the new
> files announcements in the correct are using some script?

The way I do it is kind of involved, using 3 scripts.  Maybe Kim will have some
 easier way to do this that I didn't think of at the time.  I wrote these
scripts a long time ago, and they work for me <grin>

I use these scripts to grab the new file announcements from
/home/bbbs/work/tickinfo.txt, and copy it to a message area and post it, and I
also copy the info to my web page's "new files" section.

Script one is called 'parsefile':

===start parsefile===
#!/bin/sh
cd /home/bbbs/test
if test -e /home/bbbs/work/tickinfo.txt ; then
 echo "File Exists"
 cp /home/bbbs/work/tickinfo.txt /home/bbbs/test
 cat tickinfo.txt | sed 's/Area/\
  Area/' > test.txt
  cat test.txt | sed 's/Origin/\
   Origin/' > test2.txt
   cat test2.txt /home/bbbs/htdocs/tickinfo.txt > new.txt
   cp new.txt /home/bbbs/test/newtick.txt
   cp new.txt /home/bbbs/htdocs/tickinfo.txt
   cp test2.txt /home/bbbs/work/tickinfo.txt
   cd /home/bbbs
   ./shareware.rpt
   else
    echo "no file to process"
    fi
    cd /home/bbbs/bin
    sudo ./cpticinfo
    cd /home/bbbs
===end parsefile===

As you can see, parsefile is the master script, calling shareware.rpt and
cpticinfo.

===shareware.rpt===
cd /home/bbbs
rm File_Announce_*
mv -f work/tickinfo.txt /home/bbs/oldlist.txt split -l 24 oldlist.txt
File_Announce_ chmod 700 File_Announce*
dir -1 File_Announce* > msglst
for file in `cat msglst`
do
./bbbs btxt2bbs fido.shareware_support $file /f The IFDC FileGate /t All /s New
 file Arrival
sleep 5
done
./bbbs bogus f echotoss.log
===

===cpticinfo===
#!/bin/sh
cd /home/bbbs/htdocs
if test /home/bbbs/htdocs/tickinfo.txt -nt /var/www/tickinfo.txt ; then
 cp /home/bbbs/htdocs/tickinfo.txt /var/www/tickinfo.txt
 fi
===

This is a file that I keep in my bbbs directory since cpticinfo needs it:

===echotoss.log===
fido.SHAREWARE_SUPPORT
=== end echotoss.log==

SHAREWARE_SUPPORT is the echo I post the announcements in.

Hope this helps.. If I had to write this whole thing again today, I'd probably
faint LOL

Take care,
Janis

--- BBBS/Li6 v4.10 Toy-3
 * Origin: Prism bbs (1:261/38)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to The International BBBS Support E...  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0905 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_2perkm44u77nk7008v5ukm4ja1, 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_2perkm44u77nk7008v5ukm4ja1, 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_2perkm44u77nk7008v5ukm4ja1, 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