Hi Kelvin, The interaction is a bit more complicated than that... I will update the list on the details later, but it actually makes sense to limit the filter when we see:
-u * -u user Because most likely we do not want to see all the jobs when we have a second -u. However, currently Grid Engine handles the filtering a bit differently... Rayson On Mon, Jun 18, 2012 at 7:43 PM, Kevin Buckley <[email protected]> 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
