8 write - Wrapper for bsd-write, write(1), write to all terminals of the given user
24 echo "usage: write [--all-tty] [<user>]"
50 for tty
in `utmp | awk -v user="$user" '$3 == user {print $2}'`
54 echo "write: writing message on $tty" >&2
55 /usr
/bin
/write "${opts[@]}" "$user" "$tty" <<< "$message"
59 exec /usr
/bin
/write "${opts[@]}" "${args[@]}"