#!/bin/sh # This is for running on EXPANSE echo "CIPRES_NP=$CIPRES_NP" echo "CIPRES_THREADSPP=$CIPRES_THREADSPP" export SRUN_CPUS_PER_TASK=${SLURM_CPUS_PER_TASK} export SINGULARITY_BIND="${PWD}:/mnt" #module purge module load singularitypro module load openjdk/11.0.2 #include the whole path for the output file cmdline="singularity exec -B $PWD:$PWD /expanse/projects/ngbt/opt/expanse/braker/braker3.sif $*" echo $cmdline $cmdline for f in *; do if [[ -d $f ]]; then jar cvf ${f}.zip $f echo "archived subdir $f as ${f}.zip" fi done echo "... moving on"