bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #33621, --bg -p should give an error...

 
 

bug #33621: --bg -p should give an error message

Submitted by:  Jay Hacker <jayqhacker>
Submitted on:  Wed 22 Jun 2011 08:35:40 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 22 Jun 2011 10:15:07 PM UTC, comment #2:

Fixed in [ccaa30b]

Ole Tange <tange>
Project Administrator
Wed 22 Jun 2011 09:22:09 PM UTC, comment #1:

Your two first examples work as expected. It seems, however, you are confused on what --bg does.

--bg implies --semaphore, thus piping stuff into parallel will pass that onto the program being run (in your case echo).

You final example does not make sense, and maybe GNU Parallel should tell you: You ask GNU Parallel to run the program in the background (thus making it impossible to interact with) but you require interation to decide if the program should be run at all.

Please re-read the manual and take note that --bg implies --semaphore. If you can write the manual more clear, please let me know.

For now the bug you have found is '-p --bg' should give an error saying: "Jobs running in the background cannot be interactive".

Ole Tange <tange>
Project Administrator
Wed 22 Jun 2011 08:35:40 PM UTC, original submission:

GNU parallel 20110622, RedHat 5.6 x86_64.

$ seq 1 10 | parallel --bg echo x{}
$ x

(Note the prompt returns and then parallel prints x.)
It doesn't seem to be processing any jobs past the first:

$ seq 1 10 | parallel -t --bg echo x{}
$ echo x
x

(Again, the prompt returns and then parallel prints 'echo x'.)
With -p it gets even better/worse:

$ seq 1 10 | parallel -p --bg echo x{}
parallel: This should not happen. You have found a bug.
Please contact <parallel@gnu.org> and include:

  • The version number: 20110622
  • The bugid: interactive-tty
  • The command line being run
  • The files being read (put the files on a webserver if they are big)

If you get the error on smaller/fewer files, please include those instead.
echo x ?...

Jay Hacker <jayqhacker>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tange (Posted a comment)
  • -unavailable- added by jayqhacker (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 22 Jun 2011 10:15:07 PM UTCtangeOpen/ClosedOpen=>Closed
    Wed 22 Jun 2011 09:22:09 PM UTCtangeSeverity3 - Normal=>1 - Wish
      Summary--bg and --semaphore don\'t seem to work=>--bg -p should give an error message

    Back to the top


    Powered by Savane 3.1-cleanup1