[GE users] qacct -f and archive accounting files

Reuti reuti at staff.uni-marburg.de
Tue Sep 25 18:19:22 BST 2007


Am 25.09.2007 um 18:28 schrieb Shannon V. Davidson:

> Brett W Grant wrote:
>>
>> I don't think that this is actually working.  I get the same  
>> results with this command as I do with just the qacct command.   
>> What I am getting at is that I think that this command is  
>> displaying results from the current accounting file and not the  
>> accounting.0.gz that I am piping in.
>
> If you have bash, you can always try this:
>
> bash -c 'qacct -f <(zcat /usr/sge/default/common/accounting.0.gz)'
>
> or if you're running on Linux, you can try:
>
> zcat /usr/sge/default/common/accounting.0.gz | qacct -f /dev/fd/0

Maybe it would be a good idea for an RFE to allow the "-" for stdin  
on all platforms for qacct and/or all the qconf commands which expect  
a file.

-- Reuti


> Cheers,
> Shannon
>
>
>
>
>>
>> Thanks,
>> Brett Grant
>>
>>
>>
>>
>> Darin Perusich <Darin.Perusich at cognigencorp.com>
>> 09/25/2007 08:55 AM
>> Please respond to
>> users at gridengine.sunsource.net
>>
>>
>> To
>> users at gridengine.sunsource.net
>> cc
>>
>> Subject
>> Re: [GE users] qacct -f and archive accounting files
>>
>>
>>
>>
>>
>>
>>
>> gzcat /usr/sge/default/common/accounting.0.gz | qacct
>>
>> Brett W Grant wrote:
>> >
>> > That works great in bash.  It doesn't work in tcsh.  Any hints  
>> on how to
>> > do it in tcsh?
>> >
>> > Thanks,
>> > Brett Grant
>> >
>> >
>> >
>> > *Reuti <reuti at staff.uni-marburg.de>*
>> >
>> > 09/25/2007 08:35 AM
>> > Please respond to
>> > users at gridengine.sunsource.net
>> >
>> >
>> >
>> > To
>> >                  users at gridengine.sunsource.net
>> > cc
>> >
>> > Subject
>> >                  Re: [GE users] qacct -f and archive accounting  
>> files
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > Am 25.09.2007 um 16:24 schrieb Brett W Grant:
>> >
>> >  > I typically look at the accounting file to see how many jobs  
>> have
>> >  > been done in a week.  This works fine unless the accounting file
>> >  > roles over.  As I don't have write permissions to the directory
>> >  > where the accounting files are located, I have to copy the files
>> >  > over, unzip them and then issue the qacct command.  I would  
>> like to
>> >  > avoid the copy and unzip.  Is there a way to use the -f flag  
>> with
>> >  > zcat to get the accounting info?
>> >
>> > qacct -f <(zcat /usr/sge/default/common/accounting.0.gz)
>> >
>> > -- Reuti
>> >
>> >  
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>> > For additional commands, e-mail: users- 
>> help at gridengine.sunsource.net
>> >
>> >
>>
>> -- 
>> Darin Perusich
>> Unix Systems Administrator
>> Cognigen Corporation
>> 395 Youngs Rd.
>> Williamsville, NY 14221
>> Phone: 716-633-3463
>> Email: darinper at cognigencorp.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>> For additional commands, e-mail: users-help at gridengine.sunsource.net
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list