8400 questions

9885 answers

15678 comments

14155 members

0 votes
199 views 0 comments
by
Hello,

Is it possible to write a message into the log from a user script and read after with the logread command ?

If yes, how ?

1 Answer

0 votes
by

Hello,

There is a program called logger which is located in the /usr/bin directory. If you'r writing a script using the shell the usage of the command should look like this:

/usr/bin/logger "Text that you want to show up in the logread"

Using this command you will write directly to the logread 

Best answer