Huisky
--
http://mail.python.org/mailman/listinfo/python-list
Say I have following log file, which records the code usage.
I want to read this file and do the summarize how much total CPU time
consumed for each user.
Is Python able to do so or say easy to achieve this?, anybody can give
me some hints, appricate very much!
Example log file.
*
Huiksy
On Nov 18, 12:38 am, Martin Gregorie
wrote:
> On Wed, 17 Nov 2010 13:45:58 -0800, huisky wrote:
> > Say I have following log file, which records the code usage. I want to
> > read this file and do the summarize how much total CPU time consumed for
> > each user.
>
&
the number before @ is the process id in the linux server and it is
identical.
So i do NOT think distinguish each job's starting and ending time is
difficult in this case.
Huisky
On Nov 17, 11:38 pm, Tim Harig wrote:
> On 2010-11-17, huisky wrote:
>
> > I want to read thi
Thank you very much for your reply.
I think you just count the total number of NCPU used for each user.
And it does NOT show how much time used for each user.
Huisky
On Nov 18, 12:10 am, Steve Holden wrote:
> On 11/17/2010 4:45 PM, huisky wrote:> Say I have following log file, which
>
27;Dec', '6', '19:42:55'], 18291:
['Dec', '6', '21:01:28'], 15500: ['Dec', '6', '20:26:03'], 18863:
['Dec', '7', '13:24:07']})
and I need to calculate the difference time if the key value is the
same in both dics.
thanks in advance
Huisky
--
http://mail.python.org/mailman/listinfo/python-list
>> ccompl
defaultdict(, {15424: ['Dec', '6', '19:42:55'], 18291:
['Dec', '6', '21:01:28'], 15500: ['Dec', '6', '20:26:03'], 18863:
['Dec', '7', '13:24:07']})
and I need to ca
On Nov 24, 2:09 pm, Peter Otten <__pete...@web.de> wrote:
> huisky wrote:
> > As a newbie, I posted my question here again.
> > say i have two dics read from a text file by 'split'.
>
> Please don't start a new thread when you are still aski
On Nov 24, 2:45 pm, Peter Otten <__pete...@web.de> wrote:
> huisky wrote:
> > I see the problem of year. But the question is the source file does
> > NOT provide the year information.
> > for instance if i have one record as ['Dec','6','2
Hi,
I'm trying to use the interactive mode under DOS for Python 2.7. As a
newbie, I do NOT know what is the following problem:
>>>world_is_flat=1
>>>if world_is_flat:
. . . print "be carefule to be not fall out!"
File "", line 2
print "be carefule to be not fall out!"
^
In
On Oct 24, 1:15 pm, Peter Otten <__pete...@web.de> wrote:
> huisky wrote:
> > Hi,
>
> > I'm trying to use the interactive mode under DOS for Python 2.7. As a
> > newbie, I do NOT know what is the following problem:
>
> >>>>world_is_flat=1
>
11 matches
Mail list logo