This is a slowly growing collection of hopefully useful and reusable shell functions and patterns. https://code.jan.io/jan/jans_shell_utils
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 anni fa
3 anni fa
12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. # Copyright (c) 2022 Jan Lehnardt <jan@apache.org>, MIT licensed
  3. #source ./wait_for_url.sh
  4. #
  5. # echo test1
  6. # (wait_for_url)
  7. # echo
  8. # echo test2
  9. # (wait_for_url http://localhost:8000 || echo "error reaching url")
  10. # echo "test2 done"
  11. #
  12. # echo test3
  13. # (wait_for_url http://localhost:8000 4)
  14. # echo
  15. #
  16. # echo test4
  17. # (wait_for_url http://localhost:8000 4 17)
  18. # echo
  19. # . ./wait_for_pid_exit.sh
  20. #
  21. # echo test5
  22. # (wait_for_pid_exit 45591 4 17)
  23. # echo "test5 done"
  24. # . canonical_readlink.sh
  25. #
  26. # my_path=`canonical_readlink "$0"`
  27. # echo $my_path