#!/bin/bash # determite if Rainbow job is running: get CREAM script and analyze executable name used cream_wrapper_script=$( echo "$SUDO_COMMAND" | sed 's/.*\s-c\s\([^ ]\+\).*/\1/' ) cat $cream_wrapper_script | grep '__executable=' | grep -q 'rainbow' if [ $? -eq 0 ]; then export RAINBOW_DISABLE_JOBOPTIONS_PROCESSING=1 /usr/share/arc/RTE/CLOUD/VM 0 fi