Write a shell script to send customized mail message to user

Assignment Help Programming Languages
Reference no: EM13948068

Write a shell script to send a customized mail message 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: EM13948068

Questions Cloud

The maintenance expenses on a rental house : The maintenance expenses on a rental house you own average $200 a month. The house cost $219,000 when you purchased it four years ago. A recent appraisal on the house valued it at $239,000. If you sell the house you will incur $14,000 in real estate ..
A 500 mg sample containing nacn required 23.50 : A 500 mg sample containing NaCn required 23.50 ml of 0.1255 M AgNO3 to obtain a permanent faint turbidity. Express the result of this analysis as % CN ?
What was done well and what was not done well in each area : What was done well and what was not done well in each area? What were the consequences in each case? What would you differently do the next project?
What is the implicit cost of trade credit under : Book Depot Inc. sells on terms of 2/20, net 75. What is the implicit cost of trade credit under these terms? Use a 365-day year. Correct answer (13.54)% Please explain Pets Store Inc. sells on terms of 2/15, net 60. What is the effective annual cost ..
Write a shell script to send customized mail message to user : Write a shell script to send a customized mail message 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.
Calculate the drift velocity of electrons : 1. Briefly tell what is meant by the drift velocity and mobility of a free electron.2. (a) Calculate the drift velocity of electrons in silicon at room temperature and when the magnitude of the electric field is 500 V/m.
Evaluate if provincial data converge toward national data : Measure the convergence of annual provincial data relative to the national. I have data for per capita annual income for two provinces and I have to compare them with the per capita national data and evaluate if the provincial data converge toward..
Penetrate the comp-xm market : Suppose you were hired as a consultant for a company that wants to penetrate the Comp-XM market. This company wants to pursue a broad cost leader strategy. from last year's reports which company would be the strongest competitor?
Draw the product expected after an acid : If someone has 13C enriched acetone (ie  (13CH3)2C=0 and treated it with isopropylmagnesium bromide, draw the product expected after an acid workup.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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