From 8d4105891e8c3db411bb524cb46e3f69a919ccaa Mon Sep 17 00:00:00 2001 From: yuuukuma Date: Thu, 8 Sep 2022 17:35:22 +0900 Subject: [PATCH] Update common_adapter.py add: shell=True for Command run I want to use arguments for status_cmd, but they are not accepted if shell=True is not set. An example is as follows: _q_commands_override: submit_cmd: qsub status_cmd: qstat -q particular_queue.q --- fireworks/user_objects/queue_adapters/common_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fireworks/user_objects/queue_adapters/common_adapter.py b/fireworks/user_objects/queue_adapters/common_adapter.py index 868ff621b..13946c04d 100644 --- a/fireworks/user_objects/queue_adapters/common_adapter.py +++ b/fireworks/user_objects/queue_adapters/common_adapter.py @@ -249,7 +249,7 @@ def get_njobs_in_queue(self, username=None): # run qstat qstat = Command(self._get_status_cmd(username)) - p = qstat.run(timeout=self.timeout) + p = qstat.run(timeout=self.timeout, shell=True) # parse the result if p[0] == 0: