|
|
1.1 ! root 1: .pa 1 ! 2: .he 'WRITE (I)'3/15/72'WRITE (I)' ! 3: .ti 0 ! 4: NAME write -- write to another user ! 5: .sp ! 6: .ti 0 ! 7: SYNOPSIS write_____ user ! 8: .sp ! 9: .ti 0 ! 10: DESCRIPTION write_____ copies lines from your typewriter to that of ! 11: another user. When first called, write_____ sends the message ! 12: .sp ! 13: message from yourname... ! 14: .sp ! 15: The recipient of the message should write back at this point. ! 16: Communication continues until an end of file is ! 17: read from the typewriter or an interrupt is sent. ! 18: At that point write_____ writes "EOT" on the other terminal. ! 19: .sp ! 20: Permission to write may be denied or granted by use of the mesg____ ! 21: command. ! 22: At the outset writing is allowed. ! 23: Certain commands, in particular roff____ and pr__, disallow ! 24: messages in order to prevent messy output. ! 25: ! 26: If the character "!" is found at the beginning of a line, ! 27: write_____ calls the mini-shell msh___ to execute the rest of the ! 28: line as a command. ! 29: ! 30: The following protocol is suggested for using write_____: ! 31: When you first write to another user, wait for him to ! 32: write back before starting to send. ! 33: Each party should end each message with a distinctive ! 34: signal ("(o)" for "over" is conventional) that the other may reply. ! 35: "(oo)" (for "over and out") is suggested when conversation ! 36: is about to be terminated. ! 37: ! 38: .ti 0 ! 39: FILES /tmp/utmp to find user ! 40: .br ! 41: /etc/msh to execute ! ! 42: .sp ! 43: .ti 0 ! 44: SEE ALSO mesg(I), msh(VII) ! 45: .sp ! 46: .ti 0 ! 47: DIAGNOSTICS "user not logged in"; "permission denied". ! 48: .sp ! 49: .ti 0 ! 50: BUGS write_____ ! 51: should check the mode of the other user's typewriter ! 52: and refuse to proceed unless non-user ! 53: write permission is given. ! 54: Currently it is possible to write to another ! 55: person with the same user-ID even though ! 56: he has forbidden messages. ! 57: ! 58: write_____ should also allow specification of ! 59: the typewriter name of a user who ! 60: is logged in several times instead ! 61: of picking out the instance with the ! 62: lowest name.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.