From 3639f0fc55e6556998f56a44bea6c104dcfd4d23 Mon Sep 17 00:00:00 2001 From: "William (Bill) E. Allcock" <weallcock@gmail.com> Date: Tue, 23 Feb 2021 18:10:42 -0600 Subject: [PATCH] changed the shebang line to specify pytho2 and added a note about directives processing --- src/clients/POSIX/qsub2pbs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/clients/POSIX/qsub2pbs.py b/src/clients/POSIX/qsub2pbs.py index 929a9543..86347529 100755 --- a/src/clients/POSIX/qsub2pbs.py +++ b/src/clients/POSIX/qsub2pbs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Copyright 2017 UChicago Argonne, LLC. All rights reserved. # Licensed under a modified BSD 3-clause license. See LICENSE for details. """ @@ -272,6 +272,8 @@ def convert_to_pbs(opts, spec): if opts['directives']: for i in range(len(parms)): print('#PBS ' + parms[i]) + print('\nNOTE: Directives should be immediately below the shebang line (#!/bin/bash or similar)') + print('PBS will stop procesing directives once it detects the first executable command') else: parms.append(spec['command']) parms.append(' '.join(spec['args'])) -- GitLab