CheckEx.sh 537 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. #cd /home/nvidia/20240226ZGJ-PORT/EgoZJ/EgoSystem/build/
  3. #./CheckEx.sh
  4. while true; do
  5. server=`ps aux | grep EgoSystem | grep -v grep`
  6. if [ ! "$server" ]; then
  7. #gnome-terminal -x bash -c "/home/nvidia/20240226ZGJ-PORT/EgoZJ/EgoSystem/build/EgoSystem;exec bash"
  8. #gnome-terminal -x bash -c "/home/nvidia/20240226ZGJ-PORT/EgoZJ/EgoSystem/build/start.sh;exec bash"
  9. echo "2\n";
  10. sleep 10;
  11. echo "Restart!";
  12. else
  13. echo "1\n";
  14. break;
  15. fi
  16. sleep 10
  17. done