Re: [gridengine users] Sorting qhost and choosing qstat columns

2019-08-01 Thread Skylar Thompson
> > Regards, > > -Hugh > > > > -Original Message- > > From: users-boun...@gridengine.org On Behalf > > Of David Trimboli > > Sent: Thursday, August 1, 2019 9:59 AM > > To: users Users > > Subject: [gridengine users] Sorting qhost an

Re: [gridengine users] Sorting qhost and choosing qstat columns

2019-08-01 Thread David Trimboli
On 8/1/2019 11:24 AM, Reuti wrote: Hi, Am 01.08.2019 um 15:58 schrieb David Trimboli : When I run qhost, the output is sorted alphabetically — which means "cluster10" appears before "cluster2," and so on. Before I go writing bash functions to manually sort this, which might lead to output s

Re: [gridengine users] Sorting qhost and choosing qstat columns

2019-08-01 Thread Fred Youhanaie
Hi On 01/08/2019 15:59, David Trimboli wrote: I guess XML it is. If this were PowerShell it'd be a cinch, but working in Bash... ugh... I'm not a PowerShell user, but I believe it is available for Linux. This should help, unless you are prevented from installing it on your cluster due to l

Re: [gridengine users] Sorting qhost and choosing qstat columns

2019-08-01 Thread Reuti
Hi, > Am 01.08.2019 um 15:58 schrieb David Trimboli : > > When I run qhost, the output is sorted alphabetically — which means > "cluster10" appears before "cluster2," and so on. > > Before I go writing bash functions to manually sort this, which might lead to > output side-effects, is there an

Re: [gridengine users] Sorting qhost and choosing qstat columns

2019-08-01 Thread David Trimboli
y build one from the '-xml' output. Regards, -Hugh -Original Message- From: users-boun...@gridengine.org On Behalf Of David Trimboli Sent: Thursday, August 1, 2019 9:59 AM To: users Users Subject: [gridengine users] Sorting qhost and choosing qstat columns When I run q

Re: [gridengine users] Sorting qhost and choosing qstat columns

2019-08-01 Thread MacMullan IV, Hugh
. As Skylar says, if you want a custom qstat, you should probably build one from the '-xml' output. Regards, -Hugh -Original Message- From: users-boun...@gridengine.org On Behalf Of David Trimboli Sent: Thursday, August 1, 2019 9:59 AM To: users Users Subject: [gridengine

Re: [gridengine users] Sorting qhost and choosing qstat columns

2019-08-01 Thread Skylar Thompson
I'm not aware of any way to change the sort order or remove columns without other side-effects (though I do note that "qstat -f" does not have the column), but both of these commands do have a XML output option ("-xml") which you could use to write your own reporting utilities. On Thu, Aug 01, 201

[gridengine users] Sorting qhost and choosing qstat columns

2019-08-01 Thread David Trimboli
When I run qhost, the output is sorted alphabetically — which means "cluster10" appears before "cluster2," and so on. Before I go writing bash functions to manually sort this, which might lead to output side-effects, is there any way to change the sort to a natural number sort, so that "cluste