This commit is contained in:
luk.lu
2021-06-07 10:03:42 +08:00
parent be14f64242
commit 7f0bf14e13
57 changed files with 1592 additions and 0 deletions

32
script_nuance/sge.sh Normal file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
. ~/bin/platform.sh
if [ "$PLATFORM" == 'aachen_windows' ]
then
echo "SGE is unavailable on Aachen Windows."
elif [ "$PLATFORM" == 'my_laptop' ]
then
echo "SGE is unavailable on my laptop."
elif [ "$PLATFORM" == 'aachen_linux' ]
then
if [ -z "$SGE_ROOT" ]
then
. /opt/sge6/default/common/settings.sh
fi
echo "SGE was successfully configured on Aachen Linux."
elif [ "$PLATFORM" == 'burlington_linux' ]
then
if [ -z "$SGE_ROOT" ]
then
. /usr/local/SGE/default/common/settings.sh
fi
# tools for Grid management:
. ~/bin/addpath.sh /res/tools/contrib/script
echo "SGE and Grid tools was successfully configured on Burlington Linux."
elif [ "$PLATFORM" == 'home_windows' ]
then
echo "SGE is unavailable on Home Windows."
else
echo "Unknown system! Nothing was configured."
fi