Compare commits
No commits in common. "d9ca7c31272cbe70919e9076078695557a31edd9" and "02913e042d00ffa76b9de3f593e66e9585b3dc94" have entirely different histories.
d9ca7c3127
...
02913e042d
@ -4,10 +4,10 @@ PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
|
|||||||
|
|
||||||
FILES=""
|
FILES=""
|
||||||
SCRIPTNAME=$(basename $0)
|
SCRIPTNAME=$(basename $0)
|
||||||
DIRS="/opt/SGE/local/${SCRIPTNAME}.d /usr/local/etc/gridengine/${SCRIPTNAME}.d"
|
DIRS="/opt/SGE/local/scripts/${SCRIPTNAME}.d /usr/local/etc/gridengine/${SCRIPTNAME}.d"
|
||||||
for DIR in ${DIRS} ; do
|
for DIR in ${DIRS} ; do
|
||||||
if [ -d ${DIR} ] ; then
|
if [ -d ${DIR} ] ; then
|
||||||
if [ ! -z "$(ls ${DIR}/[0-9][0-9]*)" ] ; then
|
if [ ! -z $(ls ${DIR}/[0-9][0-9]*) ] ; then
|
||||||
FILES="${FILES} $(ls ${DIR}/[0-9][0-9]*)"
|
FILES="${FILES} $(ls ${DIR}/[0-9][0-9]*)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -15,6 +15,6 @@ done
|
|||||||
FILESSORTED="$(echo ${FILES} | sort)"
|
FILESSORTED="$(echo ${FILES} | sort)"
|
||||||
|
|
||||||
for FILE in ${FILESSORTED} ; do
|
for FILE in ${FILESSORTED} ; do
|
||||||
${FILE} $@ || exit $?
|
echo ${FILE} || exit $?
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
## Delete the STDOUT and STDERR files (.o and .e) if they are empty
|
|
||||||
## ( we do not want to delete non-empty files, they may contain useful
|
|
||||||
## troubleshooting or debug information ... )
|
|
||||||
##
|
|
||||||
|
|
||||||
## input args:
|
|
||||||
# 1: $pe_hostfile
|
|
||||||
# 2: $host
|
|
||||||
# 3: $job_owner
|
|
||||||
# 4: $job_id
|
|
||||||
# 5: $job_name
|
|
||||||
# 6: $pe
|
|
||||||
# 7: $pe_slots
|
|
||||||
# 8: $queue
|
|
||||||
# 9: $stdout_path
|
|
||||||
# 10: $stderr_path
|
|
||||||
# 11: $merge_stderr
|
|
||||||
|
|
||||||
stdout_path=${9}
|
|
||||||
stderr_path=${10}
|
|
||||||
|
|
||||||
[ -r ${stdout_path} -a -f ${stdout_path} ] && [ ! -s ${stdout_path} ] && rm -f ${stdout_path}
|
|
||||||
[ -r ${stderr_path} -a -f ${stderr_path} ] && [ ! -s ${stderr_path} ] && rm -f ${stderr_path}
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user