bugGNU Parallel - Bugs: bug #50387, Can stdin be used for --pipepart...

 
 

bug #50387: Can stdin be used for --pipepart if seekable?

Submitter:  Ole Tange <tange>
Submitted:  Thu 23 Feb 2017 11:20:56 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 29 Mar 2017 06:41:23 AM UTC, comment #2: 

First example does not work on larger files.

It is probably impossible.

Anonymous
Mon 13 Mar 2017 08:18:45 PM UTC, comment #1: 

perl -e 'seek(STDIN,0,0) || die; print tell STDIN;' </tmp/1000000

seq 19 |perl -e 'seek(STDIN,0,0) || die; print tell STDIN;'

Ole Tange <tange>
Group administrator
Thu 23 Feb 2017 11:20:56 PM UTC, original submission:  

This works:

perl -e 'fork();seek(STDIN,0,0); {print <STDIN>}' < /tmp/aa

Can this work, too:

ppar --pipepart cat </tmp/aa

I.e. stdin = seekable.

Ole Tange <tange>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tange (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-31 tange StatusNone Need Info
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code