From 456f63d2bcd69e5825aa1676685111f51348bfd3 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Fri, 15 May 2015 22:05:48 +0200 Subject: [PATCH] parallel: Fail if -a file is not seekable for --pipepart. --- doc/release_new_version | 9 ++++++--- src/parallel | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/release_new_version b/doc/release_new_version index d55b0869..8b1c31cf 100644 --- a/doc/release_new_version +++ b/doc/release_new_version @@ -230,12 +230,11 @@ New in this release: taxator-tk http://algbio.cs.uni-duesseldorf.de/webapps/wa-download/ (check it) -* <> GNU Parallel was used in: Large Scale Author Name Disambiguation in Digital Libraries http://ieeexplore.ieee.org/xpl/abstractReferences.jsp?tp=&arnumber=7004487&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D7004487 +* <> GNU Parallel was used in: Large Scale Author Name Disambiguation in Digital Libraries http://ieeexplore.ieee.org/xpl/abstractReferences.jsp?tp=&arnumber=7004487&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D7004487 * << Update forventet juni >> GNU Parallel was used in: SISRS: Site Identification from Short Read Sequences https://github.com/rachelss/SISRS/ -* <> GNU Parallel was used (unfortunately with wrong citation) in: TADSim: Discrete Event-Based Performance Prediction for Temperature-Accelerated Dynamics http://vruehle.de/publications/2015c.pdf - +* <> GNU Parallel was used (unfortunately with wrong citation) in: TADSim: Discrete Event-Based Performance Prediction for Temperature-Accelerated Dynamics http://vruehle.de/publications/2015c.pdf * GNU Parallel was cited in: CIDER: a pipeline for detecting waves of coordinated transcriptional regulation in gene expression time-course data http://biorxiv.org/content/biorxiv/early/2015/03/17/012518.full.pdf @@ -261,6 +260,10 @@ taxator-tk http://algbio.cs.uni-duesseldorf.de/webapps/wa-download/ (check it) * Run multiple ssh commands in parallel with GNU Parallel http://www.ameir.net/blog/archives/380-run-multiple-ssh-commands-in-parallel-with-gnu-parallel.html +* Importing huge databases faster https://www.lullabot.com/blog/article/importing-huge-databases-faster + +* Run multiple ssh commands in parallel with GNU Parallel https://www.ameir.net/blog/archives/380-run-multiple-ssh-commands-in-parallel-with-gnu-parallel.html/comment-page-1 + * Parallel? Gnu parallel! https://debian.pro/1834 * Bug fixes and man page updates. diff --git a/src/parallel b/src/parallel index 20e55878..1dc9a6f8 100755 --- a/src/parallel +++ b/src/parallel @@ -184,6 +184,10 @@ sub pipe_part_files { # @commands that will cat_partial each part my ($file) = @_; my $buf = ""; + if(not -f $file) { + ::error("$file is not a seekable file."); + ::wait_and_exit(255); + } my $header = find_header(\$buf,open_or_exit($file)); # find positions my @pos = find_split_positions($file,$opt::blocksize,length $header);