QUOTE(chorny_cpan @ 30 Jun, 2009 - 05:08 AM)

This is not Perl - it has "#! /bin/ksh".
In general, you should set lower timeout.
Its a .sh file. Is that a shell file?
EDIT: Also we're switching servers and the ping "layout" is different I guess? they just threw this code at me and I have no expereicne with hp ux which is what we're using.
The one we use now which is what the code above is for is:
$ ping
usage: ping [-LRdfmnqrtv] [-T ttl] [-I addr] [-c count] [-i wait] [-l preload]
[-p pattern] [-s packetsize] host|[!]@hop1@hop2@...[@|:]dst
The one we're changing to is:
Usage: ping [-oprv] [-i address] [-I interval] [-t ttl] host [-n count [-m time
out]]
ping [-oprv] [-i address] [-I interval] [-t ttl] host packet-size [[-n]
count [-m timeout]]
What do I need to change in
CODE
ping -c 2 -s 1 $ip
to make it work on the new server? I made some changes but just get....ping: cannot set multicast source interface: Can't assign requested address
This post has been edited by kingtomato117: 30 Jun, 2009 - 05:54 AM