read the FAQ forum for all kinds of info on how to use UDFs

go into the UDF forum to find them

insert a line in my example after the break statement:
$ip='192.168.110.1'

and chnage the ip to the one you need pinged
_________________________
How to ask questions the smart way <-----------> Before you ask