home *** CD-ROM | disk | FTP | other *** search
- ;$VER: RC5 PPC client control 1.3 (13.06.2000)
- ;Copyright © 1999-2000 Daniel Pimley
-
- FailAt 21
- Lab restart
-
- If EXISTS ENV:RC5PPC
-
- If NOT EXISTS $RC5PPC
- RequestChoice >NIL: "RC5 Control" "Bad options for PPC client" "Quit"
- skip quit
- EndIf
-
- If EXISTS ENV:PPC
- Lab notquit
- Break >NIL: PROCESS $PPC
- If WARN
- rx "Parse ARG LOGFILE; If Open(RC5log,LOGFILE,'r') Then; Do; Do until EOF(RC5log); oldmess=mess; mess=ReadLn(RC5log); End; Close(RC5log); PARSE VAR oldmess newmess '.' dummy; If newmess~='Buffers exhausted' Then; PARSE VAR oldmess dummy '(' newmess ')'; End; Else newmess='statistics unavailable'; Open(RC5msg,'ENV:PPCMSG','w'); WriteLn(RC5msg,newmess); Close(RC5msg)" $PPCLOG
- RequestChoice >NIL: "RC5 Control" "PPC client shutdown: $PPCMSG" "OK"
- UnSetENV PPC
- Else
- Wait 3
- skip notquit BACK
- EndIf
- Else
- Run >NIL: $RC5PPC
- Wait 5
- Status >ENV:PPC COMMAND=$RC5PPC
- If WARN
- RequestChoice >NIL: "RC5 Control" "PPC client: Buffers exhausted" "OK"
- UnsetENV PPC
- Else
- RequestChoice >NIL: "RC5 Control" "PPC client installed" "OK"
- EndIf
- EndIf
-
- Else
-
- RequestFile >ENV:RC5PPC DRAWER="SYS:" FILE="rc5des_PPC" TITLE="Select PPC Client" NOICONS
- RequestFile >ENV:PPCLOG DRAWER="SYS:" FILE="rc5des.log" TITLE="Select PPC Logfile" NOICONS
-
- Which >NIL: $RC5PPC
- If WARN
- UnsetENV RC5PPC
- RequestChoice >NIL: "RC5 Control" "Invalid selection" "Quit"
- skip quit
- Else
- Copy >NIL: ENV:RC5PPC ENVARC:
- Copy >NIL: ENV:PPCLOG ENVARC:
- EndIf
-
- Skip restart BACK
-
- EndIf
-
- Lab quit