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

  Develop entity relationship diagram of information system

Develop an entity-relationship diagram of the Information System that supports the purchasing process of Proware Company described below. Include the cardinality constraints.

  Create a module to batch upload the files from a csv source

create a module to batch upload the files from a CSV source. Implement an interface to create a batch uploads.

  Define several forms of metadata

Define several forms of metadata that can be useful to an investigation. How are valuable to an investigator? The response must be typed, double spaced.

  How business process as a service reduces risk

Discuss, in your own words using 500 words or more, how business process as a service (BPaaS) reduces risk for commercial enterprises.

  Write another model program for the newsreader

Write another model program, implementation, and stepper for the newsreader, where each action returns value of all three state variables as C# out parameters.

  Explain the waterfall and agile sdlcs

Prepare for this meeting by developing a 6- to 8-slide multimedia-rich presentation that explains the waterfall and Agile SDLCs, and how your team will guide.

  What do you observe and conclude from your extrapolated plot

What do you observe and conclude from your extrapolated plot? Use fprintf to write brief description of the problem you see in the curve fit.

  Write a java application that uses the math class

Write a Java application that uses the Math class to determine the answers for the square root of 37.

  Resolving the ambiguities in the software

Describe what you must do in such a situation. You know that cost to your current employer will increase in case the ambiguities are not resolved. Though, you have also a responsibility of confidentiality to your previous employer.

  Explain why multi-byte nop instructions are needed

The NOP (no-op) instruction is an instruction that does nothing. In x86, a 1byte opcode 0x90 is designated as NOP instruction.

  Create a class mydeque to implement a circular deque

Create a class, MyDeque, to implement a circular deque. The class is based on the discussion of the deques. It should include the given methods.

  Explain the process of debugging a workbook

Explain the importance of documenting workbooks and worksheets. How can comments be used to supplement the documentation process of a workbook?

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