You will write a bash script that simulates the collection of data from two home sensors:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You will write a bash script that simulates the collection of data from two home sensors: the gas sensor and the temperature sensor: A. Create a directory named "Sensor_Dtata" in the home directory. [1 mark] B. Inside the "Sensor Dtata" directory, create two files for collecting the sensors' data separately. Name your files as: "Gas_Sensor_Data.txt" and "Temperature Sensor_Data.txt". [1 mark] C. Using the command line, write, in the two sensors' files, 20 values, that fall between 0 and 100. Save the changes in the files. [1 mark] D. Write a script that reads the values stored in the sensor's files. Your script needs to be an executable file. [1 mark] E. Set-up your script to be called in two cases: 1. Your script needs to run automatically at regular intervals, on three days of the week (Monday, Tuesday and Wednesday) at 2 a.m. in the morning because you have long outdoors duty on these three days. [2 mark] 2. Your script needs to run after one hour. For this purpose, use crontab command. [2 mark] F. On the command line, run proper commands to find the two sensor files among other txt files in the home directory. [1 mark] You will write a bash script that simulates the collection of data from two home sensors: the gas sensor and the temperature sensor: A. Create a directory named "Sensor_Dtata" in the home directory. [1 mark] B. Inside the "Sensor Dtata" directory, create two files for collecting the sensors' data separately. Name your files as: "Gas_Sensor_Data.txt" and "Temperature Sensor_Data.txt". [1 mark] C. Using the command line, write, in the two sensors' files, 20 values, that fall between 0 and 100. Save the changes in the files. [1 mark] D. Write a script that reads the values stored in the sensor's files. Your script needs to be an executable file. [1 mark] E. Set-up your script to be called in two cases: 1. Your script needs to run automatically at regular intervals, on three days of the week (Monday, Tuesday and Wednesday) at 2 a.m. in the morning because you have long outdoors duty on these three days. [2 mark] 2. Your script needs to run after one hour. For this purpose, use crontab command. [2 mark] F. On the command line, run proper commands to find the two sensor files among other txt files in the home directory. [1 mark]
Expert Answer:
Answer rating: 100% (QA)
Based on the instructions in the image you need to create and manage scripts Heres how to accomplish ... View the full answer
Related Book For
Business Statistics A Decision Making Approach
ISBN: 9780133021844
9th Edition
Authors: David F. Groebner, Patrick W. Shannon, Phillip C. Fry
Posted Date:
Students also viewed these programming questions
-
Rational choice theory implicitly or explicitly assumes a number of things about consumer choice that are often not true, such as consumers search for an optimal solution to a problem and choose on...
-
Suppose you are going to put up your own company, list down at least ten of your possible contributions to the socio-economic development in your community. Name of Business: Name of Owner/s: 2. 4....
-
On April 30, 2016, Dawson Co., borrowed $6,000 on a one-year, 9 percent note payable. What amounts would Dawson Co., report for the note payable and the related interest payable on its balance sheet...
-
The following table shows the weights in the retail price index and the values of the index itself, for 1990 and 1994. (a) Calculate the Laspeyres price index for 1994, based on 1990 = 100. (b) Draw...
-
Write a Monte Carlo code for a system of \(N\) hard spheres of diameter \(D\) on a one-dimensional ring of length \(L\) with periodic boundary conditions. Calculate the pair correlation function and...
-
The stockholders equity accounts of Karp Company at January 1, 2014, are as follows. Preferred Stock, 6%, $50 par ................$600,000 Common Stock , $5 par .................... 800,000 Paid-in...
-
What is the difference between a & b? Why? Compare inflation for 1970s and 1980s. Any improvement in the 1990s? What might be one reason for the improvement?
-
ACME Manufacturing currently produces its lead product on a machine that has a variable cost of $0.30 per unit, and fixed costs of $100,000. The Operations Manager is considering purchasing a new...
-
Monthly temperatures: 63F, 68F, 73F, 78F, and 83F Determine the level of measurement of each variable.
-
A quality-control manager randomly selects 70 bottles of ketchup that were filled on July 17 to assess the calibration of the filling machine. A research objective is presented. For each, identify...
-
Suppose you are conducting a survey regarding violence in hockey in a youth hockey league. You obtain a cluster sample of 10 hockey teams within a youth hockey league and sample all hockey players in...
-
Let \(Y\) be distributed according to the gamma(12 4) distribution. (a) Find \(\mathrm{E}[Y]\). (b) Find \(\operatorname{Var}[Y]\). (c) Find \(P(Y\)
-
The average score for a class of 28 students taking a calculus midterm exam was 72%. Determine whether the underlined value is a parameter or a statistic.
-
CULTURE OF GLOBALIZATION AND WORK-LIFE BALANCE Introduction: Increasing time pressures in the workplace and always being connected are eroding the boundary between work and personal life and many...
-
Representative data read from a plot that appeared in the paper Effect of Cattle Treading on Erosion from Hill Pasture: Modeling Concepts and Analysis of Rainfall Simulator Data (Australian Journal...
-
Wilson, Ryan, and Reed is a large certified public accounting (CPA) firm in Charleston, South Carolina. It has been monitoring the accuracy of its employees and wishes to get the number of accounts...
-
The National Association of Realtors Existing-Home Sales Series provides a measurement of the residential real estate market. One of the measurements it produces is the Housing Affordability Index...
-
A regression analysis from a sample of 15 produced the following: a. Produce the regression line. b. Determine if there is a linear relationship between the dependent and independent variables. Use a...
-
Evaluate \(\mathbf{T} e^{x}\) for the transformation \(\mathbf{T} x=-x\).
-
Show that the real integers \(1,2, \ldots\) do not form a group under the operation of multiplication.
-
Write a product table for the 4-fold rotations of a square about its geometric center. Is this a cyclic group? E: rotate by 0 A: rotate by 90 B: rotate by 180 C: rotate by 270
Study smarter with the SolutionInn App