09-30-2011
It's write that's doing it, printing error messages that get logged. It wouldn't be sending two emails if write wasn't failing, after all.
Redirect it's output into /dev/null. write $LOGNAME < ~/Msgs/message.$$ > /dev/null 2> /dev/null ...
2 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
We have been tasked to write an at reminder script that will write or echo a message to more than one user. What... (11 Replies)
Discussion started by: csharp100
11 Replies
2. OS X (Apple)
(Apologies for any typos.)
Well hands up those who have been in the following situation(s):-
Your partner, (in my case the missus), sees that you are messing
with your machine and says something like, "can you keep an eye
on the dinner, I am going out shopping", and you look up glazed
eyed... (3 Replies)
Discussion started by: wisecracker
3 Replies
LEARN ABOUT OPENSOLARIS
sysmsg
sysmsg(7D) Devices sysmsg(7D)
NAME
sysmsg - system message routing to console devices
SYNOPSIS
/dev/sysmsg
DESCRIPTION
The file /dev/sysmsg routes output to a variable set of console devices. Writes to /dev/sysmsg are always directed to the system console
/dev/console, and are in addition directed to a set of auxiliary console devices managed by consadm(1m).
Only root has permission to write to this device.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsr |
+-----------------------------+-----------------------------+
|Interface Stability |Stable |
+-----------------------------+-----------------------------+
SEE ALSO
consadm(1m), syslogd(1M) , attributes(5), console(7D)
SunOS 5.11 13 Oct 1998 sysmsg(7D)