[Ilugc] One Day One GNU/Linux Command (LOGGER)

  • From: balaviswanathv@xxxxxxxxx (Balaviswa nathanv)
  • Date: Thu Oct 16 16:11:43 2008

Thank you Mr Bharathi for your help to provide all the information about the
commands.... But its ambigious to use certain commands such as enscript,
pdf2ps , man2html even after reading their  man pages. So I would request
you to give examples on those commands...


Thanks

Bala :-)


On 10/15/08, Bharathi Subramanian <sbharathi@xxxxxxxxxxxxx> wrote:


One Day One GNU/Linux Command
=============================

logger -- Makes entries in the system log file.

Summary:

Logger is a CLI to the system log [syslog] module. It can be used to
makes entries in the system log from the shell scripts. By default,
messages will be logged in /var/log/messages.

Example:

$ logger MyLog1 -- Log the message in syslog.

$ logger -i MyLog2 -- Log the message with PID.

$ logger -s MyLog3 -- Log the message in stderr and syslog.

$ logger -t MYTAG MyLog4 -- Log the message with specified Tag.

$ logger -p user.panic MyLog5 -- Log the message with priority.

Read the man page for more Priority Facility and Level details.

Read: man logger

HTH :)
--
Bharathi S


_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Other related posts: