Page MenuHomePhabricator
Paste P8781

jsub-shell.diff
ActivePublic

Authored by LucasWerkmeister on Jul 23 2019, 12:26 AM.
diff --git a/usr/bin/jsub b/jsub
index 4c40494..91f0477 100755
--- a/usr/bin/jsub
+++ b/jsub
@@ -394,6 +394,10 @@ def build_qsub_argparser():
parser.add_argument(
'-wd', nargs=1, metavar='working_dir',
action=QsubAction, dest='qsub_args', help=argparse.SUPPRESS)
+ # Do or do not use a shell.
+ parser.add_argument(
+ '-shell', metavar='y[es]|n[o]', dest='shell',
+ type=argparse_qsub_bool, default=True, help=argparse.SUPPRESS)
return parser
@@ -604,6 +608,7 @@ def main():
'-l', 'h_vmem=%dk' % args.mem,
'-q', args.queue,
'-b', as_qsub_bool(args.binary),
+ '-shell', as_qsub_bool(args.shell),
])
qsub_stdin = None