Pinging in Linux terminal until getting N number of successful packet deliveries

Spread the love

I am looking for a command for Linux terminal in order to ping an internal server which in this case it’s “soren”.
I’m currently using the following commands to initiate the network and ping the server:
soren-init-vm-network && ping soren | grep from -m 5
The second part of this command only shows the successful ping packet deliveries, not the failed deliveries. Because, when I ping the server, it usually shows some “Unable to connect” and then it would be able to get connected to the server.
I wonder if there is any ping command in Linux terminal to show all the packet deliveries including failures and stop pinging after the 5th successful connection or packet delivery.
To put it simply, just imagine you are pining and it takes a few second to get connected to the server, and then it stops pinging after receiving 5 successful connections.
I really appreciate it if you can help me with this.

X ITM Cloud News


Leave a Reply

Next Post

KeePass 2.46 Released with TLS 1.3 Support on .NET 4.8+

Fri Sep 11 , 2020
Spread the love          KeePass Password Safe 2.46 was released a day ago with new features, improvements and bug-fixes. KeePass 2.46 release highlights include: Secure connections (e.g. for WebDAV) now support TLS 1.3, when running on .NET 4.8 +. Add keyboard shortcuts Ctrl+*, Ctrl+/ for the ‘Expand Recursively’, ‘Collapse Recursively’ group command. […]

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware