Created
February 29, 2012 13:29
-
-
Save dnshl/1940838 to your computer and use it in GitHub Desktop.
Bash script checks http status code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
URL=$1 | |
RESPONSE=$(curl --write-out %{http_code} --silent --output /dev/null ${URL}) | |
if [ $RESPONSE -ne 200 ] | |
then | |
echo $1 is down | |
fi |
Ajaysajan
commented
Jul 8, 2022
<script>
function commsission()
{
var comm_persent=0;
float (total_business=100000);
float (total_comm=0);
if(total_bussiness<=50000)
{
comm_percent=2;
}
else if(total_business<=100000){
comm_persent=3;
}
total_comm=tatal_bussiness+comm_persent/100;
return total (sum);
document.write("sum");
}
</script>
correction any this code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment