Linux bash shell script
Write a Linux bash shell script that should take an IP address as an argument from the command line and ping to that address. The script should output the result of the ping as either reachable or unreachable depending on the result of the ping. Two example outputs of the script may look like as below. Take the screen shot of the script itself and the outputs of the running script for 8.8.8.8 and 23.23.23.21 to submit.
------------1------
$ ./yourname_script.sh 8.8.8.8
The IP address 8.8.8.8 is reachable
---------------2-------------
$ ./yourname_script.sh 23.23.23.21
The IP address 23.23.23.21 is not reachable
6 years ago 20
Answer(0)
other Questions(10)
- For Prof.Qlty Only
- WEEK 7 POLICY FOR EXPERT _RESEARCHER ONLY
- Acc100 #5
- cnt2
- NEED IN 7 HOURS
- General Biology Essay: Stomach Cells
- Exercise 4
- 6. A foil is a character, which contrasts with another character in a story: highlighting characteristics or traits present or absence from a main character. Examine the use of the foil in Terra Nova, Twelfth Night or Antigone.
- law disction 2
- Management Paper 3