Skip to content

Commit

Permalink
FIX: rename logfile of a running job
Browse files Browse the repository at this point in the history
  • Loading branch information
axelhahn committed Jul 16, 2023
1 parent 3dbbd4f commit 49bca3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cronwrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@
# 2022-01-14 ahahn 1.22 fix runserver check
# 2022-03-09 ahahn 1.23 small changes
# 2022-07-14 ahahn 1.24 added: deny multiple execution of the same job
# 2022-07-16 ahahn 1.25 FIX: outfile of running job is a uniq file
# ------------------------------------------------------------

# ------------------------------------------------------------
# CONFIG
# ------------------------------------------------------------

_version="1.24"
_version="1.25"
line1="--------------------------------------------------------------------------------"

# --- set vars with required cli params
Expand Down Expand Up @@ -142,8 +143,7 @@ test -f "$( dirname $0)/cronwrapper.cfg" && . $( dirname $0)/cronwrapper.cfg

FINALOUTFILE="$LOGDIR/${MYHOST}_${LABELSTR}.log"
JOBLOG="$LOGDIR/${JOBBLOGBASE}$(date +%a).done"
# OUTFILE="$LOGDIR/`hostname`_${LABELSTR}.log"
OUTFILE="$FINALOUTFILE.running"
OUTFILE="$FINALOUTFILE.running.$$"
typeset -i iStart
iStart=$(date +%s)

Expand Down

0 comments on commit 49bca3b

Please sign in to comment.