From 1139225bf085b25c7ce491e136d28d8dbfdc38c6 Mon Sep 17 00:00:00 2001 From: natthan-pigoux Date: Fri, 24 Jul 2026 15:50:29 +0200 Subject: [PATCH 1/2] fix: add shebang to run_detached script --- src/DIRAC/Resources/Computing/BatchSystems/Host.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DIRAC/Resources/Computing/BatchSystems/Host.py b/src/DIRAC/Resources/Computing/BatchSystems/Host.py index b65de5baf35..4f82d0fdb1b 100644 --- a/src/DIRAC/Resources/Computing/BatchSystems/Host.py +++ b/src/DIRAC/Resources/Computing/BatchSystems/Host.py @@ -72,6 +72,7 @@ def submitJob(self, **kwargs): runFile = open(runFileName, "w") runFile.write( """ +#!/bin/bash ( exec $2 From 29f560f4e13f4f7a53d3070bfb4a4ad00cf057ce Mon Sep 17 00:00:00 2001 From: natthan-pigoux Date: Mon, 27 Jul 2026 14:08:28 +0200 Subject: [PATCH 2/2] fix: shebang on top line --- src/DIRAC/Resources/Computing/BatchSystems/Host.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DIRAC/Resources/Computing/BatchSystems/Host.py b/src/DIRAC/Resources/Computing/BatchSystems/Host.py index 4f82d0fdb1b..cf3dbe69b30 100644 --- a/src/DIRAC/Resources/Computing/BatchSystems/Host.py +++ b/src/DIRAC/Resources/Computing/BatchSystems/Host.py @@ -71,8 +71,7 @@ def submitJob(self, **kwargs): os.unlink(runFileName) runFile = open(runFileName, "w") runFile.write( - """ -#!/bin/bash + """#!/bin/bash ( exec $2