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
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