TIP: Click on subject to list as thread! ANSI
echo: matzdobre
to: WAYNE CHIRNSIDE
from: Ross Cassell
date: 2007-03-26 14:59:12
subject: Fidonet Archive Update

Hello WAYNE!

26 Mar 07 11:27, you wrote to me:

 WC> iYou have a sentient and self aware coputer that writes programs
 WC> and executes themself?
 WC> Codes html and ftp uploads it?
 WC> All on its' own?

 WC> I *am* impressed.

 WC> Whare may I ask did you acquire such a system so that I too may seek
 WC> to possess one?

Programs I use:

Command Interpreter is 4NT

ftrack: program I use to scan for your messages and move them into their
own squish message base file if older than 14 days.

SQ2HTM : Reads a squish message base and converts messages to HTM

Scriptftp: Automated scripted ftp program (http://www.scriptftp.com)

Here is what I do, using your section of the batch file:

=== Cut ===
{at}echo off

REM Lets set the before variables?

set wayneb4=%{at}filesize[c:\fidonet\golded\wayne\wayne.sqd]

Here I capture the file size of your existing squish message file and I
store it in the variable called "wayneb4"

REM Lets Run Ftrack

cd \fidonet\ftrack

ftrack

ftrack is run and does its thing.

REM Lets See What we have after ftrack ran?

:wayne
if %{at}filesize[c:\fidonet\golded\wayne\wayne.sqd] gt %wayneb4 goto waynedo
set wayneud=No
goto nextone

Since ftrack has already run, I retest your squish message base file
against the previously captured variable, if the new value is greater, I
redirect the batch file to update your archive, if it still is equal I skip
over and test the next persons.

The wayneud variable is simply a reference to whether or not a update was done.

:waynedo
cd \fidonet\golded\wayne
sq2htm wayne wayne

sq2htm knows that it needs to look for a wayne.sqd and the main htm page
will be called wayne.htm.

lcname *.htm

All the htm files created by sq2htm are in uppercase, I prefer lower, this
util does reduces them to lowercase.

move *.htm tmp
zip waynesquish.zip wayne.sq?
move waynesquish.zip tmp
cd tmp
zip waynehtm.zip *.htm

These commands are self-explainatory, create an updated zip archive of both
the squish message base files and the htm files that were derived from the
squish message base file.

cd \fidonet\golded\event
scriptftp_console wayne.ftp
set wayneud=Yes
goto nextone

This runs the script, sending up the htm files in addition to the 2 zips
and a small text file the script itself makes.

Here is your script:

=== Cut ===
#
# Uploading the Archive's

# Variables

archivename="Wayne Chirnside"
remote = "/wayne"
local = "c:\fidonet\golded\wayne\tmp"
archive = "/archives"
htmfiles = "*.htm"
lastupdated = getdate(format3)
txtfilename = "wayne.txt"
updatedtxtfilecmd = concat("echo
",lastupdated,">",txtfilename)

SILENT(ON)

attempts="1"
:connect
print("______Connecting______")
result_open_host=OPENHOST("matzdobre.us","XXXXXXXXXXX","XXXXXXXXXXXXXX")
IF(NOT(ISEQUAL(result_open_host,"OK")))
    PRINT("Cannot connect! Trying again.")
    IF(ISEQUAL(attempts,"3"))
         GOTO failed_connect
    Else
       attempts=ADD(attempts,"1")
       PRINT("Sleeping For 10")
       SLEEP(10)
       GOTO connect
    End If
End If

CHDIR(remote)
DELETEFILE(htmfiles)
LOCALCHDIR(local)
PUTFILE(htmfiles)
EXEC("del /q *.htm")
CHDIR(archive)
PUTFILE("*.zip")
EXEC("del /q *.zip")
EXEC(updatedtxtfilecmd)
PUTFILE(txtfilename)
EXEC(concat("del /q ",txtfilename))
closehost
exit

:failed_connect
PRINT("Cannot connect to remote host")
SLEEP("60")
EXIT

=== Cut ===

Here is where the messages you saw come into play, you should be able to
figure out what takes place..

echo Fidonet Archive Update Status For %_date>updated.txt
echo ==========================================>>updated.txt
echo ˙>>updated.txt
echo Archivee                Updated?>>updated.txt
echo ========                ========>>updated.txt
echo ˙>>updated.txt
echo Dan Ceppa               %ceppaud>>updated.txt
echo Wayne Chirnside         %wayneud>>updated.txt
echo Ward Dossche            %dosschud>>updated.txt
echo Bj”rn Felten            %feltenud>>updated.txt
echo Bob Klahn               %klahnud>>updated.txt
echo Lee Lofaso              %lofasoud>>updated.txt
echo Herman Neut             %neutud>>updated.txt
echo Bob Sakowski            %sakowsud>>updated.txt
echo Otto Ross Sauer         %sauerud>>updated.txt
echo Michiel Van Der Vlist   %vlistud>>updated.txt
echo ˙>>updated.txt
echo Archive Available At: >updated.txt" target="new">http://www.matzdobre.us>>updated.txt
echo ˙>>updated.txt
echo Archives are viewable as WEB Pages, segragated by Message
Topic.>>updated.txt
echo ˙>>updated.txt
echo Archives can also be downloaded inside ZIP file archives either
in>>updated.txt
echo the same HTM files the online archives are in or the SQUISH message
base>>updated.txt
echo files they are derived from.>>updated.txt
echo ˙>>updated.txt
echo Enjoy!>>updated.txt

The resultant updated.txt gets posted.

Glad to have furthered your education.



==
Ross
Fidonet Feeds Or Fidonet In Your Newsreader! http://www.easternstar.info
Fidonet BBS: telnet://the-estar.com or http://www.the-estar.com
Archive And Discussion Forum For Fidonets looniest: http://www.matzdobre.us
Email: recassell[at]charter[dot]net
... Without High Taxes And Welfare, Liberals Are Nothing!
--- GoldED+/W32 1.1.5-30413
* Origin: The Eastern Star - Spartanburg, SC USA (1:123/456)
SEEN-BY: 633/267 5030/786
@PATH: 123/456 500 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.