runPythonLog.sh 166 B

12345678910111213
  1. #!/bin/bash
  2. LOG=$1;
  3. shift;
  4. PYTHON=python3
  5. if [ $VENV ] ;
  6. then
  7. PYTHON=/usr/local/tomcat/software/venv/$VENV/bin/python3;
  8. fi;
  9. nohup $PYTHON -u $@ 0<&- &> $LOG &