home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man1 / write.1 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.5 KB  |  65 lines

  1. .th WRITE I 8/5/73
  2. .sh NAME
  3. write  \*-  write to another user
  4. .sh SYNOPSIS
  5. .bd write
  6. user [ ttyno ]
  7. .sh DESCRIPTION
  8. .it Write
  9. copies lines from your typewriter to that of
  10. another user.
  11. When first called,
  12. it sends the message
  13. .s3
  14.      message from yourname...
  15. .s3
  16. The recipient of the message should write back at this point.
  17. Communication continues until an end of file is
  18. read from the typewriter or an interrupt is sent.
  19. At that point
  20. .it write
  21. writes `EOT' on the other terminal and exits.
  22. .s3
  23. If you want to write to a user who is logged in more than once,
  24. the
  25. .it ttyno
  26. argument may be used to indicate the last character
  27. of the appropriate typewriter name.
  28. .s3
  29. Permission to write may be denied or granted by use of the
  30. .it mesg
  31. command.
  32. At the outset writing is allowed.
  33. Certain commands, in particular
  34. .it roff
  35. and
  36. .it pr,
  37. disallow
  38. messages in order to prevent messy output.
  39. .s3
  40. If the character `!' is found at the beginning of a line,
  41. .it write
  42. calls the shell
  43. to execute the rest of the
  44. line as a command.
  45. .s3
  46. The following protocol is suggested for using
  47. .it write:
  48. when you first write to another user, wait for him to
  49. write back before starting to send.
  50. Each party should end each message with a distinctive
  51. signal
  52. (
  53. .bd (o)
  54. for `over' is conventional) that the other may reply.
  55. .bd (oo)
  56. (for `over and out') is suggested when conversation
  57. is about to be terminated.
  58. .sh FILES
  59. /etc/utmp    to find user
  60. .br
  61. /bin/sh    to execute `!'
  62. .sh "SEE ALSO"
  63. mesg (I), who (I), mail (I)
  64. .sh BUGS
  65.