This is a slowly growing collection of hopefully useful and reusable shell functions and patterns. https://code.jan.io/jan/jans_shell_utils
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 3 gadiem
1234567891011121314151617181920212223242526
  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. source ./wait_for_pid_exit.sh
  19. echo test5
  20. (wait_for_pid_exit 45591 4 17)
  21. echo "test5 done"