home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
comm
/
Fido
/
Spot
/
Rexx
/
Maintenance.spot
< prev
next >
Wrap
Text File
|
1993-09-17
|
1KB
|
42 lines
/***************************************************************************/
/* Maintenance.rexx ©1993 Stu Churchill 2:250/107.97@fidonet */
/* */
/* $VER: Maintenance.rexx 1.50 (17.9.93) */
/* */
/* Call this script from your cron every morning to perform a daily */
/* maintenance of your messagebase */
/***************************************************************************/
options results
spot_path = 'Workbench:WBStartup/Spot CONFIGPATH "MAIL:Configs/Spot/"'
if ~show('ports','SPOT') then do
address command 'run 'spot_path
'WaitForPort SPOT'
quit = yes /* Marker to close SPOT after finishing */
end
address 'SPOT'
'isiconified'
if rc = 0 then do
icon = yes /* Marker to re-iconify after finishing */
'uniconify'
end
'spot2front'
'isarealist'
if rc = 5 then do
'arealist'
end
'maintenance KEEPUNREAD NOREQ CLOSEWIN' /* Perform maintenance */
if quit = yes then do
'quitspot NOREQ' /* Close SPOT if we had to open it ourselves */
exit
end
if icon = yes then do
'iconify NOREQ' /* Re-iconify if necessary */
end
exit