Create a cron job to execute this script every 2 minutes

Assignment Help Computer Engineering
Reference no: EM132213378

Question :

Write a script named lab6s2 that writes the current time and date, lists logged-in users, and prints the system's uptime to a log file. The time should be printed with the format of "03:55 am" as opposed to military time. The date should be printed like this: "09/10/12" Numbers should be zero-padded to 2 digits (e.g. 03 instead of 3).

(It is advisable to look at the date command's many options to format your output. Also, use the uptime command to print system uptime.)

This output should be appended to a logfile named "lab6s2.log". Create a cron job to execute this script every 2 minutes.

Reference no: EM132213378

Questions Cloud

Write a short program that simulates rock or scissors : Use the Random class to create a random number generator, which the hand class will use, each game should be determined by the random number generator.
Prompt the user for some information about a car trip : Write a simple C++ program that prompts the user for some information about a car trip and then calculates some values based on what's entered.
Write a script to create the following directory structure : Write a script to create the following directory structure in a directory of user's choice.
Write a script for gaussian elimination : Write a script for Gaussian elimination. The user should input the A matrix and the B matrix.
Create a cron job to execute this script every 2 minutes : Write a script named lab6s2 that writes the current time and date, lists logged-in users, and prints the system's uptime to a log file.
Define symbolically the expression : Define symbolically the expression and plot s with the solution obtained in step(2) marked as red circle on the same graph.
Write a script that inputs five numbers and determine : Write a script that inputs five numbers and determines and outputs HTML5 text that displays the number of negative numbers input.
Display the list of positional parameter : Set the positional parameters to be the output of the date.Display the list of positional parameter.
Write a segment of code that reads a sequence of integers : Write a segment of code that reads a sequence of integers from the keyboard until the user enters a negative number.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain the primary role that the human element could play

Write a paper with no less than four page in which you: Explain primary role that the human element could play in adding to the attack scenario, if appropriate.

  Discuss the correlation between the two types of failures

Consider an application that contains errors causing an improper alarm. Discuss the correlation between the two types of failures.

  Which will be executed had these names

How would I write down a shell script to locate executable files? This script takes a list of file names from the command line and determines which would be executed had these names been given as commands.

  What was the most interesting thing you learned from video

What was the most interesting thing you learned from this video? Do you think internet/web should be regulated? If Yes How? If no, why?

  What are advantages and disadvantages of given arrangement

Microprocessors like the 68000 use address and data buses and special-purpose dedicated control pins to implement a memory interface.

  Simulate the transmssions of information by manually typing

modify a menu that allows the administrator to simulate the transmssions of information by manually typing in the login or logoff data. whenever someone logs in or out the display should be updated

  Solution with equipment list and network topology

Propose a solution with your equipment list and network topology

  Implement simple global constant identifiers

Implement simple global constant identifiers - Generate the correct machine code instruction to load a constant value into a register when a constant IDENT in the factor rule is recognised.

  Explain why you think the impact will or will not occur

Based on this description, the group should develop an analysis of the impacts such a development would have on one of the following: corporate sales and marketing, manufacturing, or management consulting.

  Describe and analyze practices in obtaining digital evidence

Describe and analyze practices in obtaining digital evidence. Use technology and information resources to research advanced issues in computer forensics.

  Address your strategy for the given in a 2- to 3-page memo

the company offsite 2-day training session project is about ready to enter the execution phase. however management has

  Questiona company is rewriting its payroll scheme to move

questiona company is rewriting its payroll scheme to move it from old batch-type mainframe to a distributed

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