Hi,

This brings up a good point.
Do we have an area we can use for depositing/uploading user contributed script 
examples?
( I see a lot of scripts in many different areas....and sites...)

Someone could set up a free area on github if not already done.
( I can set up an area do this if not available. I see OGS has the sourceforge 
site...)

Thoughts?

Thanks,

Ed


-----Original Message-----
From: Mike Hanby [mailto:[email protected]]
Sent: Monday, June 17, 2013 03:44 PM
To: [email protected]
Subject: [gridengine users] Script to query a running job's end time

 Howdy,

 I figured I'd share a script I wrote that is useful for querying running jobs 
to get their maximum end time (based on the h_rt).

https://github.com/flakrat/misc-scripts/blob/master/query-job-endtime.rb

 The script can be run by passing it JobID's and/or UserID's

 For example:

$ query-job-endtime.rb --userid johndoe,mickeymo --jobid 9189446,9189422

JobID TaskID Owner Max End Time Requested Run Time
============ ======= ============== ===================== 
==============================
9189446 0 jsmith 2013/07/29 06:40:05 41 Days 16 Hours 0 Mins 0 Secs
9189422 0 jblow1 2013/06/18 02:05:20 0 Days 12 Hours 0 Mins 0 Secs
9189242 0 johndoe 2013/06/25 13:03:40 8 Days 4 Hours 0 Mins 0 Secs
9189444 1 mickeymo 2013/06/18 00:39:20 0 Days 10 Hours 0 Mins 0 Secs
9189444 2 mickeymo 2013/06/18 00:39:20 0 Days 10 Hours 0 Mins 0 Secs
9189444 3 mickeymo 2013/06/18 00:39:20 0 Days 10 Hours 0 Mins 0 Secs
9189444 4 mickeymo 2013/06/18 00:39:20 0 Days 10 Hours 0 Mins 0 Secs
9189444 5 mickeymo 2013/06/18 00:39:20 0 Days 10 Hours 0 Mins 0 Secs
9189444 6 mickeymo 2013/06/18 00:39:20 0 Days 10 Hours 0 Mins 0 Secs
9189444 7 mickeymo 2013/06/18 00:39:20 0 Days 10 Hours 0 Mins 0 Secs

Hope this is useful to others,

 Mike

_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to