loop.sh 281 B

1234567891011121314
  1. #!/usr/bin/sh
  2. while :
  3. do
  4. sh '/opt/LibreLight/ASP/start.sh'
  5. PS1="X:"
  6. PS1="$PS1 $(ip netns identify $$)"
  7. export PS1
  8. echo "execute some command or, exit shell and restart loop with <CTRL+D>"
  9. sh
  10. echo "Press <CTRL+C> to exit. in 1sec to exit screen loop"
  11. sleep 5
  12. done