In Ubuntu I could do something like:
sudo echo something | logger -t logstuff
Then I would get well formatted message in syslog (/var/log/messages
). On Debian Squeeze that isn't the case, the above command would not log there.
It would also be nice if I could log as normal user there...
Any ideas are welcome.
It does exactly as you describe on my Debian Squeeze system.
This is a default config, and
logger
is provided by one of the low level Debian packages, so there's a good chance it's installed (bsdutils). If it doesn't work on your system, it's possible / likely that the syslog configuration (rsyslog
, whatever you have installed) is sending the alerts to a different file.