[comp.unix.questions] write on a remote host

burow@physics.utoronto.ca (Burkhard Burow) (02/20/90)

I'd like to be able to do the remote equivalent of the local command:

>echo hello | write burow

Mesage from burow@helios.physics on ttyp1 at 9:43 ...
hello
EOF
>

One can't simply rsh this since write, for its header, tries to find 
the terminal executing the command, and of course there is none on the
remote machine.

I don't want to use mail, since in my application I'll be sending this 
command to every machine that the recipient is logged on.

talk, doesn't work since the std i/o has to be a terminal.


e-mail comments, solutions, etc. please and I'll post what works.

thank you

burk