FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
379 views 0 comments
by anonymous
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