parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running parallel from perl system() with redirects


From: Josef wells
Subject: Running parallel from perl system() with redirects
Date: Mon, 12 Jan 2015 22:37:44 +0000

I have a problem that did not happen with version:
20130822
But does happen with:
20141122

This works:
parallel --joblog - ::: 'cat hello >& hello_log' > joblog 2>&1

But it doesn't work from inside a perl program.
perl -e "system('parallel --joblog - ::: \'cat hello >& hello_log\' > joblog 2>&1');"
joblog contains the error:
/bin/sh: 1: Syntax error: Bad fd number

You can take out the --joblog -, as that just makes something useful go to the parallel output redirect.

Any ideas?

-Josef


reply via email to

[Prev in Thread] Current Thread [Next in Thread]