[CentOS-docs] strange error noise ...
R P Herrold
herrold at centos.org
Tue Sep 18 17:26:10 EDT 2012
On Thu, 13 Sep 2012, Alain Reguera Delgado wrote:
>> echo "$MESSAGE"> /dev/stderr
> Yes. These are error messages. Where else does they should go to but the
> standard error output? Isn't it the usual way of printing error messages?
no:
echo "$MESSAGE" 1>&2
is the usual way, so that it follows the stderr file handle
assigned to that sub-shell, rather than (as here in your
approach) trying to write directly to a device to which it
does not have rights
> For some reason are you running the whole script through
`sudo'?
no -- I 'su -' 'd down to an end user account from root to run
the script. No console login on that box
> message telling you that, so you can fix the problem. If we don't do
> such printing finding errors would be even harder, don't you think?
I am not against error logging, but the unusual way it is
attempted, in view of the Unix and CentOS rights model as to
selected devices
-- Russ herrold
More information about the CentOS-docs
mailing list