Write a script named check-internet-status.sh

Assignment Help Computer Engineering
Reference no: EM133703547

Question 1) Write a script named "check-internet-status.sh" and save it under "/usr/local/sbin/" 2) This script should: a. With the help of the ping command, check whether you have an active connection or not. (Hint: You should parse the output of the ping command to determine the internet connection status) b. Keep a log of your connection status in a file named "internet-status.log" under your home folder. i. Your home folder is /root ii. Make sure that the script appends the output to the log file rather than overwriting it c. When keeping the log, your script should, in a single line, write the date and the status of your connection (online or offline) to the "internet-status.log" file. d. You can use the "date" command to get the current date and time. Print the output of the "date" along with the internet status separated by a space in the "internet-status.log" file. e.g., Fri Sep 13 12:00:00 CDT 2019 online e. Give your script the executable permission for your user account. f. Create a cron entry in crontab for this script to run at 9:00AM everyday.

Reference no: EM133703547

Questions Cloud

Who would you include in the committee : Using the ethical decision-making frameworks of your choice, how will you lead this committee? Who would you include in the committee?
Develop an overview of the cost reimbursement available : Develop an overview of the cost reimbursement available from private, state and federal agencies for high-technology home care being delivered.
Define and propose what structure your mco-hmo will use : Define and propose what structure your MCO/HMO will use to maximize the ethical delivery of health care to your patients.
State the first problem : State the first problem: Our company's risk has reached a level that may harm the company and our employees, the first issue I would like to bring to your
Write a script named check-internet-status.sh : Write a script named check-internet-status.sh and save it under "/usr/local/sbin/" 2) This script should: a. With the help of the ping command
Suppose a computer science major is required to choose : Suppose a computer science major is required to choose 4 senior level courses among 7 such courses. How many choices are available?
What health issues are addressed : What health issues are addressed, how the services are financed, the hours of operation (if applicable), who is employed by the organization.
Describe how this ebp research supports your practice : Post a brief summary of the article and results. Describe how this EBP research supports your practice. How could you use this article to support your practice?
Grandmother bed refuses to allow feeding tube : A family who has gathered around their dying grandmother's bed refuses to allow a feeding tube to be removed and to stop feeding her,

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd