[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syslog output from bash
From: |
Piotr Grzybowski |
Subject: |
Re: Syslog output from bash |
Date: |
Tue, 23 Aug 2016 14:13:37 +0200 |
On 23 Aug 2016, at 08:08, Bob Proulx wrote:
> Richard Lohman wrote:
>> Problem is, I'd like the output to resemble other syslog messages:
>> Mmm dd HH:MM:SS hostname bash[pid]: command
>> And ultimately drop the username in as well. Since only bash is logging in
>
> I suggest using the 'logger' command instead of modifying bash [..]
Thats one way to do it.
For me, the most natural solution was a log builtin:
https://lists.gnu.org/archive/html/bug-bash/2015-12/msg00088.html
I kind of wanted to add log --syslog there anyway. Now I am not sure how
useful it can be.
Sorry for artificial rising of my own citation ranking ;-)
cheers,
pg