I am just wondering if there is some command which tells me if I have access to a certain queue on a cluster with sge. Thanks:)

有帮助吗?

解决方案

Use qstat's -U option. From the man page for qstat(1):

     -U user,...
          Displays status information with respect to  queues  to
          which  the specified users have access. Status informa-
          tion for jobs is displayed either for those which  exe-
          cute in one of the selected queues or which are pending
          and might get scheduled to those queues in principle.

You can then do

$ qstat -U yourusername -g c

to see a list of all the queues you have access to, or

$ qstat -U yourusername -g c -q yourqueuename

to determine if you can access a specific queue(the list will be empty if you do not have access).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top