You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
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"