Wednesday, December 8, 2010

Logger command

Use the logger command to write log entries to the /var/log/messages log file. This can be useful for scripted installations to confirm sections of the script completed successfully.

i.e.
logger Hello there!

Results in the following entry in /var/log/messages
Jul 26 16:07:23 chewbacca root: Hello there!
More vQuotes

No comments:

Post a Comment