bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports Running parallel from perl system() with re


From: Andreas Bernauer
Subject: Re: GNU Parallel Bug Reports Running parallel from perl system() with redirects
Date: Tue, 13 Jan 2015 21:30:42 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0


On 13/01/15 5:25, Josef wells wrote:
> I have a problem that did not happen with version:
> GNU parallel 20130822
> But does happen with:
> GNU parallel 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

Maybe /bin/sh and your interactive shell are different shells?
Does the 'this works' command work with /bin/sh?

'>&' does not look like a redirection that /bin/sh is supposed to
understand.

-Andreas



reply via email to

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