Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: ping count is automatically setting to 1

by rnewsham (Curate)
on Aug 21, 2013 at 06:37 UTC ( [id://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

Replies are listed 'Best First'.
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...
Re^2: ping count is automatically setting to 1
by gaurav (Sexton) on Aug 21, 2013 at 06:53 UTC

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-19 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found