annotate bin/ezip.sh @ 178:e1bc9d8d688c
ec184 now, run w. unbuffered output
author |
Henry S. Thompson <ht@inf.ed.ac.uk> |
date |
Wed, 05 Jul 2023 15:02:53 +0100 |
parents |
464d2dfb99c9 |
children |
|
rev |
line source |
88
|
1 #!/bin/bash
|
|
2 # Invoke this as e.g. sbatch -n 4 -c 32 --exclusive masterJob.sh ezip
|
|
3 # run pigz -p 8 on extract_...tar files
|
|
4 n=$SLURM_NTASKS
|
|
5 c=$SLURM_CPUS_PER_TASK
|
|
6 node=$SLURMD_NODENAME
|
|
7 local=$SLURM_LOCALID
|
|
8 proc=$SLURM_PROCID
|
|
9 echo $(date) $node:$proc start
|
|
10
|
|
11 module load gnu-parallel
|
|
12
|
|
13 parallel --will-cite -j $c -n 1 'pigz -p 8 {}/orig/extracts/*.tar' < ezip/$proc.txt
|
|
14
|
|
15 echo $(date) $proc end
|
|
16
|