15 line
253B

  1. #!/bin/bash
  2. #打开日志
  3. cd `dirname $0`/..
  4. export BASE_DIR=`pwd`
  5. echo $BASE_DIR
  6. # check the nohup.out log output file
  7. if [ ! -f "${BASE_DIR}/nohup.out" ]; then
  8. echo "No file ${BASE_DIR}/nohup.out"
  9. exit -1;
  10. fi
  11. tail -f "${BASE_DIR}/nohup.out"