#!/bin/bash function archive_results { for f in *; do if [[ -d $f ]]; then jar cvf ${f}.zip $f echo "archived subdir $f as ${f}.zip" fi done } trap archive_results SIGINT SIGTERM EXIT source $HOME/.bashrc export MODULEPATH=/share/apps/compute/modulefiles:$MODULEPATH #export MODULEPATH=/share/apps/compute/modulefiles/applications:$MODULEPATH #I compiled it with openmp (I can try to find the problem I found compiling with mpi if you'd like) #Its in /share/apps/compute/bali-phy #Jerry specified this call export LD_LIBRARY_PATH=/share/apps/compute/gcc-6.2.0/lib64:$LD_LIBRARY_PATH #this might be alright. echo "CIPRES_THREADSPP=$CIPRES_THREADSPP" echo "CIPRES_NP=$CIPRES_NP" echo "running /share/apps/compute/bali-phy/bin/bali-phy $*" /share/apps/compute/bali-phy/bin/bali-phy $* #cmdline="$* ./" #echo $cmdline #$cmdline echo "... moving on"