home *** CD-ROM | disk | FTP | other *** search
- .key DOWHAT,THENQUIT/s
- .bra [
- .ket ]
-
- ; Falcon can be run straight from the CLI (ie. "run falcon"). However,
- ; if you want to use net/echomail, etc., you'll need to use this file.
- ; Read docs/fbatch.doc for information on this file and the assigns that
- ; must be made before it is executed.
-
-
- if "[DOWHAT]" eq ""
- set dowhat "wait"
- else
- set dowhat "[DOWHAT]"
- endif
-
- if not exists LOG:log.bbs
- echo >LOG:log.bbs "" noline ; insure log exists or CBMENV ">>" won't work
- endif
-
-
- lab LOOPSTART
- if "$dowhat" eq "wait"
- Falcon
-
- ; next three lines are an alternative I use that leaves my phone open
- ; echo >>LOG:log.bbs " $(date) Waiting for event *"mail*"" ; only ARP!
- ; wait until 08:30
- ; set fret "mail"
-
- echo >>LOG:log.bbs ; break in log
- else
- set fret "$dowhat"
- set dowhat "wait"
- endif
-
- if "$fret" eq "justcall"
- TrapDoor CONFIG trapdoor.cfg ; poll boss for mail
- endif
- if "$fret" eq "export"
- FExport >NIL: ; export messages
- echo >>LOG:log.bbs ; break in log
- endif
- if "$fret" eq "mail"
- FExport >NIL: ; export messages
- echo >>LOG:log.bbs ; break in log
- set fret "call" ; continue on to call
- endif
- if "$fret" eq "call"
- TrapDoor CONFIG trapdoor.cfg ; poll boss for mail
- set fret "import" ; continue on to import
- endif
- if "$fret" eq "import"
- delete >NIL: MAIL:bak/#?
- copy >NIL: MAILIN: MAIL:bak ; back up inbound dir first
- FImport >NIL: ; import messages
- echo >>LOG:log.bbs ; break in log
- endif
- if "$fret" eq "newlog"
- ; This version makes a file "log.<day>" where day is "Sun,Mon...Sat".
- ; However, you can only use it with the ARP shell pipes enabled
- copy LOG:log.bbs "LOGBACK:log.$(echo "$(echo "$(date)" first 1 len 3)")" clone
-
- ; This is a simpler alternative for non-pipe systems
- ; copy LOG:log.bbs LOGBACK:log.bak clone
-
- echo >LOG:log.bbs "" noline ; restart log (for CBMENV ">>")
- wait 60 ; make sure falcon event ends
- endif
- if "$fret" eq "quit"
- skip END
- endif
- if "$fret" eq "error"
- skip END
- endif
- if "[THENQUIT]" not eq ""
- skip END
- endif
- skip LOOPSTART back
-
-
- lab END
- ; stick any cleanup you may need here
- quit
-