gargs
gargs copied to clipboard
mode to consume data from stdin
currently gargs expects arguments to come on stdin and uses those to fill the command-template.
gargs could have a --pass-through mode that sends --nlines of stdin to each process.
In order to block as little as possible, the main process will read into a temp file and then set an io.Reader of that tmpfile as the stdin to each process.
This would enable things like:
zcat $fastq | gargs -p 20 --pass-through --nlines 100000 "bwa mem $fasta /dev/stdin"
This sounds similar to xin?