startup.sh 846 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/sh
  2. #screen -wipe
  3. if ! screen -list | grep -q "BernhardFront"; then
  4. (
  5. cd BernhardFront/
  6. # screen -d -m -S BernhardFront python start.py
  7. python start.py &
  8. )
  9. fi
  10. if ! screen -list | grep -q "Bernhard01"; then
  11. (
  12. cd Bernhard01/
  13. # screen -d -m -S Bernhard01 python core.py
  14. python core.py &
  15. )
  16. fi
  17. if ! screen -list | grep -q "Bernhard02"; then
  18. (
  19. cd Bernhard02/
  20. # screen -d -m -S Bernhard02 python core.py
  21. python core.py &
  22. )
  23. fi
  24. if ! screen -list | grep -q "Bernhard03"; then
  25. (
  26. cd Bernhard03/
  27. # screen -d -m -S Bernhard03 python core.py
  28. python core.py &
  29. )
  30. fi
  31. if ! screen -list | grep -q "Bernhard04"; then
  32. (
  33. cd Bernhard04/
  34. # screen -d -m -S Bernhard04 python core.py
  35. python core.py &
  36. )
  37. fi