bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports --joblog parsing fails for commands contain


From: Ole Tange
Subject: Re: GNU Parallel Bug Reports --joblog parsing fails for commands containing line feeds.
Date: Fri, 23 Jun 2017 19:02:02 +0200

On Sat, Jun 17, 2017 at 12:00 AM, Coby Viner <address@hidden> wrote:

> --joblog parsing fails for commands containing line feeds.

This works for me:

parallel --jl /tmp/myjl 'echo "command
with
newlines"' ::: a b c

parallel --resume --jl /tmp/myjl 'echo "command
with
newlines"' ::: a b c d e

$ parallel --version
GNU parallel 20170622
Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017
Ole Tange and Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
GNU parallel comes with no warranty.

Web site: http://www.gnu.org/software/parallel

When using programs that use GNU Parallel to process data for publication
please cite as described in 'parallel --citation'.

> Description:
>
> I am running GNU Parallel from a bash script in which it is convenient for
> me to use commands that span over multiple lines (of which the above is a
> simple contrived example). It would be nice if --joblog parsing were able to
> ignore lines not starting with a sequence number.

Consider using bash functions instead.
https://www.gnu.org/software/parallel/man.html#EXAMPLE:-Calling-Bash-functions


/Ole



reply via email to

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