Commit 335289a6 authored by Lionel Gauthier's avatar Lionel Gauthier

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5339 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent d0555060
...@@ -212,7 +212,8 @@ rotate_log_file () { ...@@ -212,7 +212,8 @@ rotate_log_file () {
fi fi
FILENAME_NO_EXT=$(echo "$FILENAME" | sed 's/\.[^\.]*$//') FILENAME_NO_EXT=$(echo "$FILENAME" | sed 's/\.[^\.]*$//')
TIMESTAMP=`date +%Y-%m-%d.%Hh_%Mm_%Ss` # use file last modification time
TIMESTAMP=`date -r $FULLPATH +%Y-%m-%d.%Hh_%Mm_%Ss`
NEWLOGFILE=$TIMESTAMP.$FILENAME_NO_EXT.$FILEEXTENSION NEWLOGFILE=$TIMESTAMP.$FILENAME_NO_EXT.$FILEEXTENSION
mv $FULLPATH /tmp/$NEWLOGFILE mv $FULLPATH /tmp/$NEWLOGFILE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment