How to check ping status of a domain/host name in python ?
Today in this post, we will understand how to check ping status of a domain in python programming language. I. Program import os response=os.system("ping -c 2 google.com") if (response ==...
Today in this post, we will understand how to check ping status of a domain in python programming language. I. Program import os response=os.system("ping -c 2 google.com") if (response ==...
Lets look how to create functions in python. For example:- We will create two functions: 1. To say “Hello World” to the world. 2. To square a number and get...
In this article, we will look at a trick how to disable crontab “-r” option in Linux. “E” and “R” lies nearby, hence there are chances while typing “crontab -e”,...
Today we will see how to create a command to ssh a particular server to ease our life. Here i have created a function ngessh to ssh a particular server...
In this post, we will look how to define and use functions in python. To understand this, lets see an example below. Using Functions in Python In python, the function...
In this post, we will look at an interesting part of any programming language. Yes, you guessed it right. We will read about how to take input from a user...
Today we will check how to create a custom user command in Linux easily. Lets see the procedure step by step. The easiest way is to create a function and...