Question related to bash script

Assignment Help Data Structure & Algorithms
Reference no: EM1380655

Create a shell script to send a customized mail memo to the users listed on the command line by login (user) name, only if they are currently logged on. If no users are listed on the command line, an error message should be printed.

In the mail message, the full (real) name from the passwd file (/etc/passwd) should be used. Also, mail should be signed with the real name of the person who is running the script.

Following error message should be printed if an argument username does not exist in the passwd file - "Please send this message to users whom you know personally.".

The mail message should be as follows:

Hello "<INSERT THE ARGUMENT USER'S REAL NAME FROM THE PASSWORD FILE>",

Please ignore this mail. The current time and date is <CURRENT DATE AND TIME>. Have a nice day.

"<INSERT THE SCRIPT RUNNING USER'S REAL NAME FROM THE PASSWORD FILE>"

 

Reference no: EM1380655

Questions Cloud

Create a shell script to locate executable files : Create a shell script to locate executable documents? The script takes a list of document names from the command line and determines which would be executed had these names been given as commands.
Explain impact of changes in sales volume on both firms : Assuming these companies compete within same industry also have identical sales; explain impact of changes in sales volume on both firms' profits.
What were some of apple''s biggest successes : Apple Computer: Research how Apple managed to reinvent itself over the years. What were some of Apple's biggest successes and failures? Describe why.
Which is considering expansion into china : which is considering expansion into China. The senior management of UA desires an analysis of the Chinese market from various perspectives, including trends and the impact of trends on business operations in the airline industry.
Question related to bash script : Create a shell script to send a customized mail memo to the users listed on the command line through login name, only if they are currently logged on.
Find a general equation for the plane : Find a vector in R5 which is not a linear combination and find a vector equation for the line through the points
Analyze the structure of the global hamburger chain industry : the following questions using the data relevant to Jollibee at the time of the case writing. Do not update the case information to current time. Analyze the structure of the global hamburger chain industry relevant to Jollibee.
How could an apparel company use second life to build : How could an apparel company use Second Life to build a digital dashboard to monitor virtual operations? based on the case Second Life: Succeeding in Virtual Times
Describe any constsaints on the ability of businesses : Describe any constsaints on the ability of businesses to respond to external factors.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Question about pointerlists

Whenever the pointer of a list or a tree is manipulated, procedure that performs this operation must be considered to be in a critical section.

  Creating a unix shell script

Design a Unix shell script that searches for a text document with most occurrences of a given keyword. For instance, if I would like to search for a script with most usages of if statement,

  Write algorithm to calculate the median using queries

Calculate the median using as few queries as possible. Provide an algorithm which determines the median value using at most O(lg n) queries.

  Describe a fair coin algorithm to returns either 0 or 1

Describe a FAIRCOIN algorithm that returns either 0 or 1 with equal probability, using ONEINTHREE as your only source of randomness.

  Determine expected number of collisions use hash function

Assume we use hash function h to hash n distinct keys into the array T of length m. Suppose simple uniform hashing, determine the expected number of collisions?

  Sql statements

Suppose that the tables T1 and T2 have a 1:1 relationship. Suppose that T2 has the foreign key. Demonstrate the SQL statements necessary to move the foreign key to T1.

  Finding total available storage capacity

A certain hard disk has 480 cylinders, sixteen tracks, and thirty-two sectors of 512 bytes each. It spins at 4800 revolutions per minute, and has an adjacent cylinder seek time of eighty msec, and a max seek time of onde hundred msec.

  Data structures for a single algorithm

Data structures for a single algorithm

  Conversion with unnormalized relation

Nazca Cinemas is a tiny movie theater that would like you to create a movie scheduling database system for them. The theater has 4-screens. Each screens has its own unique ID

  Data speed effect on fundamental business decisions

Can the speed in which data is transmitted have an adverse effect on fundamental business decisions? Yes, speed that is traveling at big rates of speed can have an affect on fundamental business decisions.

  Discussion on data mining techniques

The tax authorities working for many governments are often confronted with challenge of detecting tax evasion and fraud. Suppose you work at income tax department.

  Administration plan for the hypothetical situation

Discuss how would you approach a backup and administration plan for hypothetical condition given below. With any network administration systems that should be installed for remote access in event of a network emergency.

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