Rather than writing to "/dev/console", the preferred method is to use the
"syslog" facility and the "logger" command.
Check your man pages.
"syslog" will allow you to write to the console, and /var/adm/messages, and
email, and a centralized network log, etc..
The "logger" command will accept input from a pipe.
This will also avoid having to use "setuid".
...Terry.
Ian Clark wrote in message <350f870c.505650264@news.demon.co.uk>...
>On Tue, 17 Mar 1998 14:03:55 -0500, Steve Romankiw
><sromankiw@execrisk.com> wrote:
>
>>
>>As root, you can send messages to the console by typing "echo hello >
>>/dev/console".
>>When I try this as any user besides root, I get a message similar to
>>"/dev/console: cannot create".
>>