LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   A doubt in ubuntu site :https://help.ubuntu.com/community/LinuxLogFiles (https://www.linuxquestions.org/questions/linux-security-4/a-doubt-in-ubuntu-site-https-help-ubuntu-com-community-linuxlogfiles-4175471110/)

ravisingh1 07-27-2013 04:27 AM

A doubt in ubuntu site :https://help.ubuntu.com/community/LinuxLogFiles
 
I have a doubt in a the below section of the ubuntu site: https://help.ubuntu.com/community/LinuxLogFiles
Section where I have doubt (marked in blue):
Quote:

System Logging Daemon (syslogd)
Configuration of syslogd
Echoing Messages to syslogd With Logger
Log Rotation
The last sentence of the section writes:
Quote:

So, as you can see, we received the messages both via standard error, at the terminal prompt, and they also appear in our syslog.
But I say it's only standard output and not standard error as the above line mentions.

TB0ne 07-27-2013 08:31 AM

Quote:

Originally Posted by ravisingh1 (Post 4997771)
I have a doubt in a the below section of the ubuntu site: https://help.ubuntu.com/community/LinuxLogFiles
Section where I have doubt (marked in blue):

The last sentence of the section writes: But I say it's only standard output and not standard error as the above line mentions.

Not sure what your question is. Please clarify.

ravisingh1 07-27-2013 10:57 AM

Sorry for not being clear.
See, the last sentence of the section says that the messages were received via standard error but it's clear from the script (which is in the same section,please go through it) that the messages weren't received via standard error but via standard output.
Please correct me if I have mistaken somewhere in my understanding the script.

TB0ne 07-27-2013 02:46 PM

Quote:

Originally Posted by ravisingh1 (Post 4997904)
Sorry for not being clear.
See, the last sentence of the section says that the messages were received via standard error but it's clear from the script (which is in the same section, please go through it) that the messages weren't received via standard error but via standard output.
Please correct me if I have mistaken somewhere in my understanding the script.

Did you read the man page on logger???
Quote:

Originally Posted by Logger Man Page
-s, --stderr
Output the message to standard error as well as to the system log.

The script very clearly runs logger with the -s and -T flags. There is output to BOTH listed.

ravisingh1 07-28-2013 01:19 AM

TBOne, thanks. Oh!, (my fault)I should have checked the logger command first. The logger command / options weren't clear to me, so I had the doubt. The man page clarifies the point.


All times are GMT -5. The time now is 04:13 AM.