url="http://localhost:8080/matlib"
until $(curl "$url" --max-time 10) == 0; do stuck_pid=$(chown_pid); kill -9 $stuck_pid && "killing chmod process";done
what I'm trying to do is curl this address, if it times out after 10 seconds, then term a PID.
The part that is failing is the '== 0', the intention here was to compare the return code from curl with 0, but I'm receiving the following error:
-bash: ==: command not found