LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-27-2013, 04:27 AM   #1
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 278

Rep: Reputation: Disabled
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.
 
Old 07-27-2013, 08:31 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,241

Rep: Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475
Quote:
Originally Posted by ravisingh1 View Post
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.
 
Old 07-27-2013, 10:57 AM   #3
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 278

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-27-2013, 02:46 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,241

Rep: Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475
Quote:
Originally Posted by ravisingh1 View Post
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.
 
Old 07-28-2013, 01:19 AM   #5
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 278

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu Community Manager Jono Bacon Talks About Ubuntu for Android, Humble Bundles, Steam, Gam LXer Syndicated Linux News 0 06-06-2012 07:20 PM
https on a Ubuntu 10.04.2 LTS Neme Adas Linux - Server 2 05-18-2012 12:20 PM
problems with https Ubuntu 11.10 mac1234mac Linux - Software 1 02-13-2012 04:06 AM
Basic Doubt of Ubuntu Installation vibinlakshman Linux - Hardware 1 09-17-2009 04:09 AM
Doubt on installing Ubuntu 9.04 over Fedora 11 Dual Boot. maheshkuruganti Linux - General 1 05-20-2009 09:45 AM


All times are GMT -5. The time now is 10:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration