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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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