home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
bbs
/
fn132bin
/
etc
/
bbs.g
next >
Wrap
Text File
|
1991-09-02
|
3KB
|
59 lines
# bbs.g
#
set continue 1 # 'continue' flag
set oldpath $path # save the old path and set a new one
set path c:\bin,e:\citmain,e:\citnet,e:\citutil,e:\
cd e:\ # change directory to where ctdltabl.sys lives
while { $continue > 0 } # Loop until we set 'continue' to '0'
if { -e ctdltabl.sys } == 0 # is ctdltabl.sys there?
configur x # If not, reconfigure.
endif
citadel +line +ymodem +purge # run citadel
if { $status == 0 } # Did citadel.tos return '0'?
set continue 0 # If so, it was ^LQ from the
echo 'Normal console termination.' # Console.
ef { $status == 1 } # Did it return '1'?
echo 'Performing regular backup...' # If so, it was a
cp -R d:\secret\sys g:\backup # defined Timeout (see section
cp -R d:\secret\net g:\backup # 9.3 of the Reference Manual
cp -R d:\secret\audit g:\backup # and ctdlcnfg.doc).
echo 'Finished.'
ef { $status == 2 } # Did it return '2'?
set continue 0 # It crashed. The file 'crash'
echo 'Something must be buggered.' # may help explain why.
ef { $status == 3 } # Did it return '3'?
set continue 0 # That means someone used ^LQ
echo 'Somebody took it down from remote.' # from remote.
ef { $status == 255 } # Did it return '255'?
set continue 0 # **BOOM!** Can try checking
echo 'Something is REALLY* buggered.' # 'crash', but....
ef { $status == 10 } # Did it return '10'?
echo 'Calling UUCP feeds...' # Aha! An #event! This one's
uucall -v -salpha0 # for calling UUCP feeds.
uucall -v -sdragos
ef { $status == 15 } # Here's another #event! This
echo 'Exercising the feeping creatures...' # one is for
clog -t > d:\secret\library\userlog.sys # nightly stats
popular -msb > d:\secret\library\popular.sys # gathering and
callstat -c # stuff like
cp d:\secret\audit\callbaud.sys d:\secret\library # that...
cp d:\secret\audit\callstat.sys d:\secret\library
endif
endwhile # ....and loop back to the top again.
# if we reach here, it means that something up there set 'continue'
# to '0', meaning we're supposed to quit.
set path $oldpath # Reset the path we had before
unset oldpath # and remove the variable.
# Done!