From 50a92c147409aa66e567e0d5e63f600314c3b349 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Devenyi" Date: Mon, 25 Mar 2019 16:32:10 -0400 Subject: [PATCH] Switch away from using a pipe to avoid problems with very long command lines --- bin/bpipe | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/bpipe b/bin/bpipe index b2ba2342..8fbdc8ec 100755 --- a/bin/bpipe +++ b/bin/bpipe @@ -140,6 +140,7 @@ function clean_job_files() { fi rm -f .bpipe/prompt_input_files.* + rm -f ${execcommand} } #---------------------------------------------------------- @@ -637,7 +638,10 @@ $SHOWDEBUG && { echo "LAUNCH_CMD: $LAUNCH_CMD" } -nohup bash -c "$LAUNCH_CMD" \ +execcommand=$(mktemp) +echo "$LAUNCH_CMD" > $execcommand + +nohup bash $execcommand \ > /dev/null 2>&1 & # Re-enable wildcard expansion: don't want it turned off in case it's