20-CONSOLE.sh 542 B

12345678910111213141516171819202122
  1. #!/usr/bin/bash
  2. set -e
  3. path="/opt/LibreLight"
  4. SES="CONSOLE.py"
  5. CMD="-- bash -c 'python3 $path/Xdesk/console.py'"
  6. echo "- STARTING $SES"
  7. cd "$path/Xdesk/"
  8. #echo $(pwd)
  9. screen -XS "$SES" quit | echo ""
  10. CMD2="screen -d -m -S $SES $CMD"
  11. #screen -d -m -S "$SES" -- bash -c 'python3 $path/Xdesk/console.py'
  12. #screen -S "$SES" -- '/usr/sbin/python3 /opt/LibreLight/Xdesk/console.py'
  13. screen -d -m -S "$SES" -- python3 /opt/LibreLight/Xdesk/console.py
  14. #'/usr/sbin/python3 /opt/LibreLight/Xdesk/console.py'
  15. #echo "$CMD2"
  16. $CMD2
  17. #sleep 2
  18. #screen -ls