Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!ssc-vax!uvicctr!tholm From: tholm@uvicctr.UUCP (Terrence W. Holm) Newsgroups: comp.os.minix Subject: write(1) Message-ID: <480@uvicctr.UUCP> Date: 26 Aug 88 00:13:56 GMT Reply-To: tholm@uvicctr.UUCP (Terrence W. Holm) Organization: University of Victoria, Victoria B.C. Canada Lines: 64 EFTH MINIX report #36 - August 1988 - write(1) There follows an implementation of write(1) for Minix. Please consider this public domain software. A "man" page is included. [Note: the first two echo's should contain a ^G.] ---------------------------------------------------------- echo x - write.1 gres '^X' '' > write.1 << '/' XCOMMANDS X write(1) - write to another user X XINVOCATION X write ttyn X XEXPLANATION X Write(1) copies lines typed at your terminal to the X user signed on at device /dev/. When the X unidirectional connection is made the terminal bell X is sounded and the other user is notified of your X request by a line of the following form, X X Message from user (/dev/ttym) ... X X The other user can use write(1) to reply. The end of the X conversation is signaled by hitting the end-of-file key X or an INTERRUPT signal (usually DELETE). X X The error message "Permission denied" means that the X device /dev/ does not exist. X XREFERENCES X talk(1) X XPROBLEMS X MINIX does not support mesg(1). / echo x - write gres '^X' '' > write << '/' X# write(1) X Xtrap ':' 2 X Xif echo 2>/dev/null >/dev/$1; then X echo -n X echo Message from `whoami` \(`tty`\) ... >/dev/$1 X cat -u >/dev/$1 X echo EOT >/dev/$1 Xelse X echo Permission denied Xfi / ---------------------------------------------------------- Edwin L. Froese uw-beaver!ubc-cs!mprg!handel!froese Terrence W. Holm uw-beaver!uvicctr!tholm