Browse Source

Adding runPythonLog.sh

Andrej Studen@Labkey-KNM 1 year ago
parent
commit
b0b7af0efb
1 changed files with 13 additions and 0 deletions
  1. 13 0
      serviceScripts/runPythonLog.sh

+ 13 - 0
serviceScripts/runPythonLog.sh

@@ -0,0 +1,13 @@
+#!/bin/bash
+
+LOG=$1;
+shift;
+PYTHON=python3
+
+if [ $VENV ] ;
+then
+   PYTHON=/usr/local/tomcat/software/venv/$VENV/bin/python3;
+fi;
+
+nohup $PYTHON -u $@ 0<&- &> $LOG &
+