thanks for the tips, yep it is address not adress, my mistake
, its better the way you wrote the script, but i still have a problem with the if conditional.
when it compares the ping results it executes both sentences and writes:
148.202.15.70 is alive
148.202.15.70 is dead
there has to be something wrong with that if, i dont know what it is exaclty...
i have also tried comparing strings with the same mistake, i dont know why it executes both commands...
pong=$ipadr" is alive"
alive=`ping $ipadr`
if (test "$pong"="$alive")
any idea of what's wrong this if?