File size: 255 Bytes
dbf8df0
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
#打开日志

cd `dirname $0`/..
export BASE_DIR=`pwd`
echo $BASE_DIR

# check the nohup.out log output file
if [ ! -f "${BASE_DIR}/nohup.out" ]; then
   echo "No file  ${BASE_DIR}/nohup.out"  
   exit -1;
fi

tail -f "${BASE_DIR}/nohup.out"