text stringlengths 0 1.99k |
|---|
people to change the password on your account, you could do this: |
.proc,chat, |
PW"Password: "=(*A). |
$ife,PW="cyber",yes. |
$chat. |
$revert. |
$bye. |
$else,yes. |
$note./Wrong password, try again/. |
$revert. |
$bye. |
$endif,yes. |
This procedure will ask the user for a password and if he doesn't type "cyber" |
he will be logged off. If he does get it right then he will be dumped into |
the chat program and as soon as he exits the chat program, he will be logged |
off. This way, the user cannot get into the batch subsystem and change your |
password or otherwise screw around with the account. The following is a |
listing of the procfil that I use on my local system, it has a lot of handy |
utilities and examples... |
---- cut here ---- |
.PROC,B. |
.******BYE****** |
$DAYFILE. |
$NOTE.////////////////////////// |
$ASCII. |
$BYE. |
$REVERT,NOLIST. |
#EOR |
.PROC,TIME. |
.******GIVES DAY AND TIME****** |
$NOTE./THE CURRENT DAY AND TIME IS/ |
$FIND,CLOCK./ |
$REVERT,NOLIST. |
#EOR |
.PROC,SIGN*I,IN. |
.******SIGN PRINT UTILITY******. |
$GET,IN. |
$FIND,SIGN,#I=IN,#L=OUT. |
$NOTE./TO PRINT, TYPE: PRINT,OUT,CC,RPS=??/ |
$REVERT,NOLIST. |
#EOR |
.PROC,TA. |
.******TALK****** |
$SACFIND,AID,COMM. |
$REVERT,NOLIST. |
#EOR |
.PROC,DIR,UN=,FILE=. |
.******DIRECTORY LISTING OF PERMANENT FILES****** |
$GET(ZZZZDIR=CAT/#UN=1GTL0CL) |
ZZZZDIR(FILE,#UN=UN) |
$RETURN(ZZZZDIR) |
$REVERT,NOLIST. |
#EOR |
.PROC,Z19. |
.******SET SCREEN TO Z19****** |
$SCREEN,Z19. |
$NOTE./SCREEN,Z19. |
$REVERT,NOLIST. |
#EOR |
.PROC,VT. |
.******SET SCREEN TO VT100****** |
$SCREEN,VT100. |
$NOTE./SCREEN,VT100. |
$REVERT,NOLIST |
#EOR |
.PROC,SC. |
.******SET SCREEN TO T10****** |
$SCREEN,T10. |
$NOTE./SCREEN,T10. |
$REVERT,NOLIST |
#EOR |
.PROC,C. |
.******CATLIST****** |
$CATLIST. |
$REVERT,NOLIST. |
#EOR |
.PROC,CA. |
.******CATLIST,LO=F****** |
$CATLIST,LO=F. |
$REVERT,NOLIST. |
#EOR |
.PROC,MT. |
.******BBS****** |
$SACFIND,AID,MTAB. |
$REVERT,NOLIST. |
#EOR |
.PROC,LI,FILE=. |
.******LIST FILE****** |
$GET,FILE. |
$ASCII. |
$COPY(FILE) |
$REVERT. |
$EXIT. |
$CSET(NORMAL) |
$REVERT,NOLIST. WHERE IS THAT FILE?? |
#EOR |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.