:fl !!!Listing 1 :li Listing des Installationsskriptes pvminstall zur Durchführung zentraler PVM-Installationen: # # Benutzerinstallationsskript fuer PVM3.x # # (C) Georg Stellner, 3.11.1993 PERMS=755 PVMSYSPATH=/usr/local/share/src/pvm3 PVMPATH=$HOME/pvm3 PVMGRPSER=pvmgs BIN=bin LIB=lib INCLUDE=include CONF=conf LINKDIRS="$LIB $INCLUDE $CONF" # Hier muss man ggf. weitere Architekturen eintragen! ARCHS="SUN4 HPPA" if [ -d $PVMPATH ] then echo "$0: Installation directory already existing." echo "Remove $PVMPATH before retrying to install PVM." exit 1 fi echo "Creating now Installation directoy $PVMPATH" mkdir $PVMPATH < /dev/null 2>&1 if [ $? -ne 0 ] then echo "$0: No permission to create $PVMPATH" echo "Make sure you have write permissions for the path" exit 2 fi chmod $PERMS $PVMPATH > /dev/null 2>&1 if [ ! -d $PVMPATH/$BIN ] then echo "Creating now user binary directory $BIN in $PVMPATH" mkdir $PVMPATH/$BIN > /dev/null 2>&1 if [ $? -ne 0 ] then echo "$0: No permission to create $PVMPATH/$BIN" echo "Make sure you have write permissions for the path" exit 3 fi chmod $PERMS $PVMPATH/$BIN > /dev/null 2>&1 fi for i in $ARCHS do if [ ! -d $PVMPATH/$BIN/$i ] then mkdir $PVMPATH/$BIN/$i > /dev/null 2>&1 if [ $? -ne 0 ] then echo "$0: No permission to create $PVMPATH/$BIN/$i" echo "Make sure you have write permissions for the path" exit 4 fi chmod $PERMS $PVMPATH/$BIN/$i > /dev/null 2>&1 fi echo "Creating symbolic link to $PVMSYSPATH/$BIN/$i/$PVMGRPSER" ln -s $PVMSYSPATH/lib/$i/$PVMGRPSER $PVMPATH/$BIN/$i/$PVMGRPSER done echo "Attention: Do not remove the above created links otherwise the" echo " group communication will not work!" for i in $LINKDIRS do if [ ! -d $PVMPATH/$i ] then echo "Creating symbolic link to $PVMSYSPATH/$i" ln -s $PVMSYSPATH/$i $PVMPATH/$i > /dev/null 2>&1 if [ $? -ne 0 ] then echo "$0: No permission to create $PVMPATH/$i" echo "Make sure you have write permissions for the path" exit 4 fi fi done echo "Installation in $PVMPATH completed successfully." exit 0 !!!Ende Listing Installation