Mam taki kod:
Kod: Zaznacz cały
#!/bin/bash
host='url'
result=`wget -s $host `
if ( $result | grep connect 1>/dev/null 2>&1);
then
echo success
else
echo failure
fi
Kod: Zaznacz cały
failure
W jaki sposób mogę sprawdzić ten adres?
Kod: Zaznacz cały
#!/bin/bash
host='url'
result=`wget -s $host `
if ( $result | grep connect 1>/dev/null 2>&1);
then
echo success
else
echo failure
fi
Kod: Zaznacz cały
failure