#! /bin/bash # load modules . ~/.bashrc # serial part if [ X"$PMI_RANK" = X0 ] || [ X"$PMIX_RANK" = X0 ];then echo "I'm leader process on $(hostname)" fi # parallel part hostname