This is a slowly growing collection of hopefully useful and reusable shell functions and patterns. https://code.jan.io/jan/jans_shell_utils
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

26 строки
397B

  1. #!/bin/sh
  2. #source ./wait_for_url.sh
  3. #
  4. # echo test1
  5. # (wait_for_url)
  6. # echo
  7. # echo test2
  8. # (wait_for_url http://localhost:8000 || echo "error reaching url")
  9. # echo "test2 done"
  10. #
  11. # echo test3
  12. # (wait_for_url http://localhost:8000 4)
  13. # echo
  14. #
  15. # echo test4
  16. # (wait_for_url http://localhost:8000 4 17)
  17. # echo
  18. . ./wait_for_pid_exit.sh
  19. echo test5
  20. (wait_for_pid_exit 45591 4 17)
  21. echo "test5 done"