Yes, that makes sense.

I wanted to have a global default but then let "savy" users *undo* the global 
setup.

So what I am going to do is create a local "~/.sge_qstat" with "-u *" and let 
the users who want to change the default to simply remove this file, or change it to their likings.

Best,
Joseph


On 06/18/2012 04:43 PM, Kevin Buckley wrote:
Whoops,

forgot to copy the list in

On 19 June 2012 10:08, Joseph Farran<[email protected]>  wrote:
After making this the system wide default, how can an individual users
change it back to just show their jobs?

In one account, I created:

$ cat ~/.sge_qstat
-u $USER

Trying to switch it back to only listing this one user qstat jobs, but I
still get the system wide listing of everyone.
The user file seems to add to the existing command line, ie including the
stuff from the system-wide definitions.

If you trace, eg do an strace of, the qstat invocation with both defiinitions
active, you'll see that both the -u * and -u $USER are being processed.

I think you may be approaching this in a slightly suboptimal way though,
involving two changes, the system-wide define and the user-education
define, when one "change" would suffice.

Why set a system-wide default that you think may want to be overridden
and so requires you to ALSO have to tell your users about the ~/.sge_qstat
methodology?

If you are going to have to tell them about  ~/.sge_qstat anyway, why not tell
them how to  add the "-u *" to their own file (or equivalent to their command
line qstat) so that they get to choose not to have the Grid Engine default in
favour of  "-u *" listing.

Other system-level canges would be to give each user a ~./sge_qstat
or create a shell alias, say qstat_all, to hold the the default args you
want - either way allows the user to customise things for themselves.

Just my thre'pen'th though.
Kevin
ECS, VUW, NZ
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users


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

Reply via email to