* [gentoo-user] date in emerge logs
@ 2006-10-27 9:55 Jorge Almeida
2006-10-27 10:13 ` [gentoo-user] " Harm Geerts
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Jorge Almeida @ 2006-10-27 9:55 UTC (permalink / raw
To: gentoo-user
What are the numbers at the beginning of each line in the logs of
emerge? Example:
1161911504: --- AUTOCLEAN: Nothing unmerged.
I'm assuming that 1161911504 is some date. If so, how can I translate it
into something human-meaningfull?
--
Jorge Almeida
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: date in emerge logs
2006-10-27 9:55 [gentoo-user] date in emerge logs Jorge Almeida
@ 2006-10-27 10:13 ` Harm Geerts
2006-10-27 10:22 ` [gentoo-user] " Neil Bothwick
` (2 subsequent siblings)
3 siblings, 0 replies; 12+ messages in thread
From: Harm Geerts @ 2006-10-27 10:13 UTC (permalink / raw
To: gentoo-user
On Friday 27 October 2006 11:55, Jorge Almeida wrote:
> What are the numbers at the beginning of each line in the logs of
> emerge? Example:
> 1161911504: --- AUTOCLEAN: Nothing unmerged.
>
> I'm assuming that 1161911504 is some date. If so, how can I translate it
> into something human-meaningfull?
> --
> Jorge Almeida
What it is: http://en.wikipedia.org/wiki/Unix_time
One way to translate it to a human readable form is this:
$ python -c "import time; print time.ctime(1161911504)"
Not sure if there are console apps that can do this.
It's not very common to work with timestamps in the console afaik :)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] date in emerge logs
2006-10-27 9:55 [gentoo-user] date in emerge logs Jorge Almeida
2006-10-27 10:13 ` [gentoo-user] " Harm Geerts
@ 2006-10-27 10:22 ` Neil Bothwick
2006-10-27 10:42 ` [gentoo-user] " Harm Geerts
2006-10-27 10:30 ` [gentoo-user] " Bo Ørsted Andresen
2006-10-27 18:28 ` Richard Fish
3 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2006-10-27 10:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
On Fri, 27 Oct 2006 10:55:58 +0100 (WEST), Jorge Almeida wrote:
> I'm assuming that 1161911504 is some date. If so, how can I translate it
> into something human-meaningfull?
emerge genlop
--
Neil Bothwick
I'm writing a book. I've got the page numbers done.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] date in emerge logs
2006-10-27 9:55 [gentoo-user] date in emerge logs Jorge Almeida
2006-10-27 10:13 ` [gentoo-user] " Harm Geerts
2006-10-27 10:22 ` [gentoo-user] " Neil Bothwick
@ 2006-10-27 10:30 ` Bo Ørsted Andresen
2006-10-27 11:08 ` Peter Ruskin
2006-10-27 18:28 ` Richard Fish
3 siblings, 1 reply; 12+ messages in thread
From: Bo Ørsted Andresen @ 2006-10-27 10:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 407 bytes --]
On Friday 27 October 2006 11:55, Jorge Almeida wrote:
> What are the numbers at the beginning of each line in the logs of
> emerge? Example:
> 1161911504: --- AUTOCLEAN: Nothing unmerged.
>
> I'm assuming that 1161911504 is some date. If so, how can I translate it
> into something human-meaningfull?
# tail /var/log/emerge.log | awk -F: '{print strftime("%D %X %Z", $1),$2}'
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: date in emerge logs
2006-10-27 10:22 ` [gentoo-user] " Neil Bothwick
@ 2006-10-27 10:42 ` Harm Geerts
2006-10-27 11:39 ` Neil Bothwick
0 siblings, 1 reply; 12+ messages in thread
From: Harm Geerts @ 2006-10-27 10:42 UTC (permalink / raw
To: gentoo-user
On Friday 27 October 2006 12:22, Neil Bothwick wrote:
> On Fri, 27 Oct 2006 10:55:58 +0100 (WEST), Jorge Almeida wrote:
> > I'm assuming that 1161911504 is some date. If so, how can I translate it
> > into something human-meaningfull?
>
> emerge genlop
Oh, forgot about that.
On that note, I found qlop to be much faster.
You might want to give it a try as well.
emerge portage-utils
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] date in emerge logs
2006-10-27 10:30 ` [gentoo-user] " Bo Ørsted Andresen
@ 2006-10-27 11:08 ` Peter Ruskin
2006-10-27 12:30 ` Jorge Almeida
0 siblings, 1 reply; 12+ messages in thread
From: Peter Ruskin @ 2006-10-27 11:08 UTC (permalink / raw
To: gentoo-user
On Friday 27 October 2006 11:30, Bo Ørsted Andresen wrote:
> On Friday 27 October 2006 11:55, Jorge Almeida wrote:
> > What are the numbers at the beginning of each line in the logs
> > of emerge? Example:
> > 1161911504: --- AUTOCLEAN: Nothing unmerged.
> >
> > I'm assuming that 1161911504 is some date. If so, how can I
> > translate it into something human-meaningfull?
>
> # tail /var/log/emerge.log | awk -F: '{print strftime("%D %X %Z",
> $1),$2}'
tail /var/log/emerge.log | awk -F: '{print strftime("%c", $1),$2}'
is more internationally friendly (and less to type).
--
Peter
========================================================================
Gentoo Linux: Portage 2.1.2_pre3-r9 kernel-2.6.18-gentoo
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ gcc(GCC): 4.1.1
KDE: 3.5.5 Qt: 3.3.6
========================================================================
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: date in emerge logs
2006-10-27 10:42 ` [gentoo-user] " Harm Geerts
@ 2006-10-27 11:39 ` Neil Bothwick
0 siblings, 0 replies; 12+ messages in thread
From: Neil Bothwick @ 2006-10-27 11:39 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
On Fri, 27 Oct 2006 12:42:17 +0200, Harm Geerts wrote:
> > emerge genlop
>
> Oh, forgot about that.
> On that note, I found qlop to be much faster.
qlop is faster at what it does, but does less. A combination of the two
is well worth having.
--
Neil Bothwick
Back Up My Hard Drive? How do I Put it in Reverse?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] date in emerge logs
2006-10-27 11:08 ` Peter Ruskin
@ 2006-10-27 12:30 ` Jorge Almeida
0 siblings, 0 replies; 12+ messages in thread
From: Jorge Almeida @ 2006-10-27 12:30 UTC (permalink / raw
To: gentoo-user
On Fri, 27 Oct 2006, Peter Ruskin wrote:
>> On Friday 27 October 2006 11:55, Jorge Almeida wrote:
>>> I'm assuming that 1161911504 is some date. If so, how can I
>>> translate it into something human-meaningfull?
>>
>> # tail /var/log/emerge.log | awk -F: '{print strftime("%D %X %Z",
>> $1),$2}'
>
> tail /var/log/emerge.log | awk -F: '{print strftime("%c", $1),$2}'
> is more internationally friendly (and less to type).
>
Thank you, this is what I need. Thanks to everyone else who replied,
too.
--
Jorge Almeida
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] date in emerge logs
2006-10-27 9:55 [gentoo-user] date in emerge logs Jorge Almeida
` (2 preceding siblings ...)
2006-10-27 10:30 ` [gentoo-user] " Bo Ørsted Andresen
@ 2006-10-27 18:28 ` Richard Fish
2006-10-27 18:34 ` Jorge Almeida
3 siblings, 1 reply; 12+ messages in thread
From: Richard Fish @ 2006-10-27 18:28 UTC (permalink / raw
To: gentoo-user
On 10/27/06, Jorge Almeida <jalmeida@math.ist.utl.pt> wrote:
> What are the numbers at the beginning of each line in the logs of
> emerge? Example:
> 1161911504: --- AUTOCLEAN: Nothing unmerged.
>
> I'm assuming that 1161911504 is some date. If so, how can I translate it
> into something human-meaningfull?
carcharias rjf # date -d @1161911504
Thu Oct 26 18:11:44 MST 2006
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] date in emerge logs
2006-10-27 18:28 ` Richard Fish
@ 2006-10-27 18:34 ` Jorge Almeida
2006-10-27 19:44 ` Peter Ruskin
0 siblings, 1 reply; 12+ messages in thread
From: Jorge Almeida @ 2006-10-27 18:34 UTC (permalink / raw
To: gentoo-user
On Fri, 27 Oct 2006, Richard Fish wrote:
>> I'm assuming that 1161911504 is some date. If so, how can I translate it
>> into something human-meaningfull?
>
> carcharias rjf # date -d @1161911504
> Thu Oct 26 18:11:44 MST 2006
>
Well, there's one more solution :)
Would you say that using date is faster/lighter than awk (as per other
replies)? This is to be included in a script, so the lighter the
better...
Thanks.
Jorge
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] date in emerge logs
2006-10-27 18:34 ` Jorge Almeida
@ 2006-10-27 19:44 ` Peter Ruskin
2006-10-27 23:36 ` Jorge Almeida
0 siblings, 1 reply; 12+ messages in thread
From: Peter Ruskin @ 2006-10-27 19:44 UTC (permalink / raw
To: gentoo-user
On Friday 27 October 2006 19:34, Jorge Almeida wrote:
> On Fri, 27 Oct 2006, Richard Fish wrote:
> >> I'm assuming that 1161911504 is some date. If so, how can I
> >> translate it into something human-meaningfull?
> >
> > carcharias rjf # date -d @1161911504
> > Thu Oct 26 18:11:44 MST 2006
>
> Well, there's one more solution :)
> Would you say that using date is faster/lighter than awk (as per
> other replies)? This is to be included in a script, so the
> lighter the better...
> Thanks.
>
I would think so, yes. If you write a script like this...
#!/bin/sh
# unix-time
date -d @$1
...and enter:
$ unix-time 1161911504
Fri Oct 27 02:11:44 BST 2006
--
Peter
========================================================================
Gentoo Linux: Portage 2.1.2_pre3-r9 kernel-2.6.18-gentoo
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ gcc(GCC): 4.1.1
KDE: 3.5.5 Qt: 3.3.6
========================================================================
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] date in emerge logs
2006-10-27 19:44 ` Peter Ruskin
@ 2006-10-27 23:36 ` Jorge Almeida
0 siblings, 0 replies; 12+ messages in thread
From: Jorge Almeida @ 2006-10-27 23:36 UTC (permalink / raw
To: gentoo-user
On Fri, 27 Oct 2006, Peter Ruskin wrote:
>> Would you say that using date is faster/lighter than awk (as per
>> other replies)? This is to be included in a script, so the
>> lighter the better...
> I would think so, yes. If you write a script like this...
>
> #!/bin/sh
> # unix-time
> date -d @$1
>
> ...and enter:
> $ unix-time 1161911504
> Fri Oct 27 02:11:44 BST 2006
>
Thanks, but that's not what I meant. I have a script that acts as a
filter, and sometimes lines include unix-time dates. So I suppose that
awk it is, since "date" will choke on input other than proper dates.
Cheers.
--
Jorge Almeida
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-10-27 23:41 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27 9:55 [gentoo-user] date in emerge logs Jorge Almeida
2006-10-27 10:13 ` [gentoo-user] " Harm Geerts
2006-10-27 10:22 ` [gentoo-user] " Neil Bothwick
2006-10-27 10:42 ` [gentoo-user] " Harm Geerts
2006-10-27 11:39 ` Neil Bothwick
2006-10-27 10:30 ` [gentoo-user] " Bo Ørsted Andresen
2006-10-27 11:08 ` Peter Ruskin
2006-10-27 12:30 ` Jorge Almeida
2006-10-27 18:28 ` Richard Fish
2006-10-27 18:34 ` Jorge Almeida
2006-10-27 19:44 ` Peter Ruskin
2006-10-27 23:36 ` Jorge Almeida
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox