From: mikey@slic.cts.com (Mike Shirley)
Newsgroups: comp.bbs.waffle
Subject: Automating some of DOS Waffle's Features/Abilities
Summary: Sample BAT files included
Date: Sat, 12 Sep 92 15:44:04 PDT
Organization: Muth Valley Seismic Control District, San Diego, CA / Port2

I've had a few requests for copies of my bat files that eases the
burden for sysops in keeping waffle free of problems.  Or at
least learning of them sooner.

I call 2 different BAT files, one nightly and the other weekly.
The daily BAT file (ADMINSYS.BAT) is for the things that signal
trouble and that can pop up at anytime.  The weekly run is more
for statistical or status purposes.

My Waffle system runs on the E:\ drive, the /spool and /user files
are on F: drive, and the RAM Drive is H:\.

If any of these goodies sparks other ideas, please post them or
at least e-mail me what your have done.  These BATs barily
scratch the surface of the capabilities.  And I luv to play with
more ideas...Mike

-------------------------

:      E:\BIN\ADMINSYS.BAT
@echo on
:system   Daily passes via scheduler
IF EXIST f:\USER\SYSTEM\MAILBOX.F E:\BIN\RMAIL -fAdminSys.BAT -sMail_Waiting_in_System_Mailbox mikey < E:\system\adminsys.txt
:Root
IF EXIST f:\USER\ROOT\MAILBOX.F E:\BIN\RMAIL -fAdminSys.BAT -sMail_Waiting_in_Root_Mailbox mikey < E:\system\adminsys.txt
:Bounces
IF EXIST F:\USER\SYSTEM\ORPHAN.F RMAIL -fAdminSys.BAT -sOrphan_User_Aboard_slic mikey < F:\USER\SYSTEM\ORPHAN.F
:Anonymou
IF EXIST F:\spool\anonymou\*.* RMAIL -fAdminSys.BAT -sSpool_Anonymou_Files_In_Directory mikey < E:\system\adminsys.txt
:Batch
IF EXIST F:\spool\batch\*.* RMAIL -fAdminSys.BAT -sSpool_Batch_Files_In_Directory mikey < E:\system\adminsys.txt
:Ipars
IF EXIST F:\spool\ipars\*.* RMAIL -fAdminSys.BAT -sSpool_Ipars_Files_Left mikey < E:\system\adminsys.txt
:Lost
IF EXIST F:\spool\lost\*.D RMAIL -fAdminSys.BAT -sSpool_Lost_Files_Left mikey < E:\system\adminsys.txt
:Upload
IF EXIST F:\spool\upload\*.* RMAIL -fAdminSys.BAT -sSpool_Upload_Files_In_Directory mikey < E:\system\adminsys.txt
:Unbatch
IF EXIST F:\spool\unbatch\*.* RMAIL -fAdminSys.BAT -sSpool_Unbatch_Files_In_Directory mikey < E:\system\adminsys.txt
@echo off

----------

:       E:\BIN\ADMIN.BAT
@echo off
:       Admin Runs Thurdays Only
RMAIL -fAdminDir -sBounces_Log mikey < E:\admin\bounces
RMAIL -fAdminDir -sTransfers_Log mikey < E:\admin\transfers
RMAIL -fAdminDir -sLogfail_Log mikey < E:\admin\logfail
RMAIL -fAdminDir -sRequests_Log mikey < E:\admin\requests
RMAIL -fAdminDir -sVmslog mikey < E:\admin\vmslog
:netsum
Del H:\netsum                       ---> H drive is a RAM Drive
E:\bin\netsum -d -c% > H:\netsum
E:\BIN\RMAIL -fAdminBAT -sNetSum_Stats mikey < H:\netsum
Del H:\netsum
:Free
Del H:\FreeF
DIR F:\zz > H:\FreeF
E:\BIN\RMAIL -fAdminBAT -sFree_Space_on_F:\drive mikey < H:\FreeF
:Stats
E:\bin\stats > H:\stats
E:\BIN\RMAIL -fAdminBAT -sStats_on_Newsgroups mikey < H:\stats
Del H:\stats

-----------

        E:\SYSTEM\ADMINSYS.TXT file
Check the Subject for reason why this letter was created by the
E:\bin\Adminsys.bat file via the scheduler at this date/time.

----------

       E:\SYSTEM\SCHEDULE file
#  min  hour  day  mon  dayweek  com  (0-6=Sun-Sat)

20 * * * * call poll.bat             :20

#     Daily - any Active system
00 10 * * * call batch.bat
35 01 * * * call pollall.bat         0135
35 03 * * * call pollall.bat         0335
07 03 * * * call adminsys.bat        0307  System Administration Daily
09 03 * * * call outfold.bat         0309  Convert netmail to root\outbox.f
35 05 * * * call pollall.bat         0535


#     Thursday - Maintanance
03 02 * * 4 call dr.bat              0203  Creates indexes for Files subdirec
05 02 * * 4 call admin.bat           0205
07 02 * * 4 call diskhogc.bat        0207
09 02 * * 4 call treerunw.bat        0209
11 02 * * * call vacation.bat        0211 Daily

-------------

Hope these give you more ways to automate your Waffle...mps

--
     Mike, WB6WUI   //   INET:  mikey@slic.cts.com   //   GEnie: SLIC