Skip to content

Instantly share code, notes, and snippets.

@shahrzad
Created March 22, 2021 03:29
Show Gist options
  • Save shahrzad/9c404b02a9e6b8df58853d80cf4b01c0 to your computer and use it in GitHub Desktop.
Save shahrzad/9c404b02a9e6b8df58853d80cf4b01c0 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# -eq 2 ]
then
build_type=$1
compiler=$2
node_name=$(echo $(hostname)|cut -d'.' -f 1)
node_name=${node_name:0:-2}
echo $node_name
./hpx_script.sh ${build_type} ${compiler} ${node_name}
else
echo "Error: Two arguments should be provided: build_type and compiler"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment