Write down a shell script to send a customized

Assignment Help Computer Engineering
Reference no: EM1336602

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: EM1336602

Questions Cloud

Explain marketing concepts and marketing managers : Explain Marketing concepts and marketing managers and Strategies to engage shareholders in new product development
Find the break even point in units for proposal : Find the break-even point in units for proposal A.
Discuss a hypothetical economy where both the price : Suppose the following equations discuss a hypothetical economy where both the price level and interest rates are fixed.
Illinois whistleblower statute : Your explanation must apply a professional code of ethics or ethical philosophical approach. What protection might you have under the Illinois whistleblower statute?
Write down a shell script to send a customized : Write down 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.
Lucidate what will happen to the economy in the short run : If the government decides to intervene to return the economy to full employment, elucidate what will happen to the economy in the short run and in the long run.
Explain important information about marketing discussion : Explain Important information about Marketing Discussion and Most discussions of marketing strategy focus on large businesses like Procter and Gamble
Forecast the next period using simple exponential smoothing : Calculate the forecast for the next period using simple exponential smoothing.
Could an until loop sometimes never execute : could an until loop sometimes never execute.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  What is the cookie

What is a cookie? What are advantages and disadvantages of using cookies in a web application.

  What to recommend as a method of change

Contemporary organizations should be supportive of widening the span of control, flattening structure, and forming collaborative and flexible teams.

  Developing the gui application

Write down a GUI application which prompts user for a number between 1 and 5. Be sure to involve error checking so that program continues to prompt the user for a number till the user's entry is between 1 and 5, inclusive.

  Define the concept of object orientation

decribe the concept of object orientation and Universal Modeling Language (UML) as used in computer programming.

  Attributes and specifications of software package

Build a weighted ranking in accordance to your own evaluation of attributes and specifications of each software package.

  Make a basic web page using html tags

build a basic Web page using HTML tags. The page should present information about a company/organization or about a profession.Please include all Web site files.

  Developing the marketing requirements

Develop a code scheme that will meet marketing managers stated requirements. Write down a brief memo to marketing manager proposing at least one alternative to the code she proposed

  Why the analysis step often breaks down

It is said that communications in the analysis step often breaks down? Could you comment on this? Have you experienced this phenomenon? If not, will you accept this statement, and why.

  Photoshop cs5 and cs5

Explain the programs that are available in order to edit the images? Explain at least two of the attributes available in the Photoshop CS5 and CS5.

  Make an initial linked list of students and grades

Modify an existing student in the linked list.make an initial linked list of students and grades.

  Make use of a regularexpressionvalidator control

make Use of Visual Studio.NET 2005 to create an ASP.NET project with four aspx forms. Use Master Pages to display a company name selected by your group at the top each form.

  Different visual basic command

Write down the visual basic command in order to Load a LVM file ( file name: Data.lvm), Delete the first 22 row , Insert a new column from 0 to last row of file with increment of 0.1 ( For example, if there are 25 rows in Data.lvm; then 25-22=3, it w..

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