Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: ping count is automatically setting to 1

by rnewsham (Hermit)
on Aug 21, 2013 at 06:37 UTC ( #1050289=note: print w/ replies, xml ) Need Help??


in reply to ping count is automatically setting to 1

You are setting the deadline option with -w to 1 second. Which will terminate the ping after one second regardless of how many packets have been transmitted and received. If you increase this default you should get the five results you expect.

"Please do not suggest to use Net::Ping ,I am using system ping command for some reasons."

You will getter better responses from the monks if you can actually state your reasons. Using Net::Ping is generally going to be the better option compared to shelling out to system ping. If you want to shell out or reinvent the wheel you need a good reason to do so. Without a reason this comes across as homework.


Comment on Re: ping count is automatically setting to 1
Re^2: ping count is automatically setting to 1
by gaurav (Acolyte) on Aug 21, 2013 at 06:53 UTC

    Thanks,later I figured it out,accidentally I changed it

Re^2: ping count is automatically setting to 1
by Anonymous Monk on Aug 21, 2013 at 08:30 UTC
    "Please do not suggest to use Net::Ping ,I am using system ping command for some reasons."

    You will getter better responses from the monks if you can actually state your reasons. Using Net::Ping is generally going to be the better option compared to shelling out to system ping. If you want to shell out or reinvent the wheel you need a good reason to do so. Without a reason this comes across as homework.

    I think the reason is that I came off a little mean at around 1050149 when I saw no effort coming from him...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050289]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2014-07-23 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (140 votes), past polls