create modular prolog and epilog setup
all files named [0-9][0-9]* in /opt/SGE/local/scripts/{prolog,epilog,pe_prolog,pe_epilog}.d and in /usr/local/etc/gridengine/{prolog,epilog,pe_prolog,pe_epilog}.d will be executed.
This commit is contained in:
1 parent
a5963b445b
commit
02913e042d
8 files changed
+24
No files matched your search
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
pro-epilog_wrapper.sh
|
||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
pro-epilog_wrapper.sh
|
||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
pro-epilog_wrapper.sh
|
||||||
Executable
+20
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
|
||||||
|
|
||||||
|
FILES=""
|
||||||
|
SCRIPTNAME=$(basename $0)
|
||||||
|
DIRS="/opt/SGE/local/scripts/${SCRIPTNAME}.d /usr/local/etc/gridengine/${SCRIPTNAME}.d"
|
||||||
|
for DIR in ${DIRS} ; do
|
||||||
|
if [ -d ${DIR} ] ; then
|
||||||
|
if [ ! -z $(ls ${DIR}/[0-9][0-9]*) ] ; then
|
||||||
|
FILES="${FILES} $(ls ${DIR}/[0-9][0-9]*)"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
FILESSORTED="$(echo ${FILES} | sort)"
|
||||||
|
|
||||||
|
for FILE in ${FILESSORTED} ; do
|
||||||
|
echo ${FILE} || exit $?
|
||||||
|
done
|
||||||
|
exit 0
|
||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
pro-epilog_wrapper.sh
|
||||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Reference in new issue
Block a user