Re: Multiple lines?

2015-04-08 Thread Ole Tange
On Sat, Mar 28, 2015 at 3:56 PM, Matthew Lai wrote: > Just wondering if there is an option to divide things up in blocks of lines? > > For example, if there is a file with a million lines, is there a way to run > 4 processes, with 250k lines input each? > > I have a large file I want to process i

Re: how does gnu parallel handle SIGINT/SIGQUIT?

2015-04-08 Thread Ole Tange
On Tue, Apr 7, 2015 at 6:03 PM, Martin d'Anjou wrote: > GNU Parallel "wraps" the execution of other programs, just like shells > do. I'd like to understand how exactly GNU Parallel behaves itself > when it gets SIGINT/SIGQUIT. The reason I ask is because I have a > program that performs special a

Re: How to disable SIGTERM

2015-04-08 Thread Ole Tange
On Tue, Apr 7, 2015 at 6:06 PM, Martin d'Anjou wrote: > GNU Parallel intercepts SIGTERM. The program I call needs to receive > SIGTERM. How do I disable SIGTERM's interception by GNU Parallel? SIGTERM signals GNU Parallel to stop spawning more jobs and wait for running jobs to complete. If you

Re: gnu parallel supresses output of ssh and scp when using --line-buffer option

2015-04-08 Thread Ole Tange
On Mon, Mar 30, 2015 at 3:07 PM, Warner, Ben wrote: > myuser@myhost:~ % parallel --version > > GNU parallel 20140422 Since you are not using the newest release, you should upgrade to that to see if that fixes the problem. > This was my output: > > myuser@myhost:~ % parallel --line-buffer 'echo