[ale] line timestamp command

Chuck Payne terrorpup at gmail.com
Tue Nov 12 14:27:49 EST 2013


I haven't heard of any command, I do the same echo that you are doing.


On Tue, Nov 12, 2013 at 1:39 PM, Jim Kinney <jim.kinney at gmail.com> wrote:
> Can you modify the process to just write to standard logging?
>
>
> On Tue, Nov 12, 2013 at 1:34 PM, Scott Plante <splante at insightsys.com>
> wrote:
>>
>> Does anyone happen to know of a command line tool that will read lines
>> from standard input and write them to std out, pre-pending a timestamp? I
>> have a process that emits messages to std out periodically as it processes
>> and I'd like to write that to a log file, but with a time at the start of
>> the line. I could do it with a script but a nice little command would be
>> better, if it exists.
>>
>> I'm looking for something that would perform the function of this script,
>> maybe with an option for format:
>>
>> while read line;
>> do
>>   echo $(date +"%D %T") "$line";
>> done
>>
>> Scott
>>
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>
>
>
> --
> --
> James P. Kinney III
>
> Every time you stop a school, you will have to build a jail. What you gain
> at one end you lose at the other. It's like feeding a dog on his own tail.
> It won't fatten the dog.
> - Speech 11/23/1900 Mark Twain
>
> http://heretothereideas.blogspot.com/
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
Terror PUP a.k.a
Chuck "PUP" Payne

(678) 636-9678
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- en.opensuse.org/User:Terrorpup
openSUSE Ambassador/openSUSE Member
Community Manager -- Southeast Linux Foundation (SELF)
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363

Have you tried SUSE Studio? Need to create a Live CD,  an app you want
to package and distribute , or create your own linux distro. Give SUSE
Studio a try. www.susestudio.com.
See you at Southeast Linux Fest, June 7-9, 2013 in Charlotte, NC.
www.southeastlinuxfest.org


More information about the Ale mailing list