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

  Build a java program named comparefiles.java

make a java program named CompareFiles.java and enter the code to check if the files, TeamProj.txt and TeamProj2.txt, exist.

  Requirements for telecommunications planning

Discuss what do you understand by the general estimate requirements for the enterprise telecommunications planning and also explain in detail the cable estimating procedures.

  Evaluating the wireless nics

Describe whether this is still true today, and state the factors which are moving wireless NICs into the more dominant role, if any.

  Writing into file utilizing fileinputstream

Write down an application utilizing the FileInputStream which opens a file which consists of the name of user's favourite book and then show it to the user.

  Define communication between different databases

Why would this make a problem. What is the role of proprietary systems in this issue.

  What is oracle administration documentations

What is oracle administration documentations

  Create and implement the class myarray

Please assist with following problem. I am totally lost with this so if you can also include statements telling me what you did, I would appreciate it. The entire chapter talks about array index out of bounds which has completely confused me and t..

  A palindrome consists of a word or deblanked

A palindrome consists of a word or deblanked, unpunctuated phrase that is spelled exactly the similar when the letters are reversed. Write a recursive function that returns a value of 1 if its string argument is a palindrome.

  Give a pseudocode and flowchart

A local department store hires you to write down an automated checkout program to expedite customers in a hurry. The checkout line can only accept 5 items for any one purchase.

  Designing a web page

In designing a web page, depending upon the information you are trying to convey, use of the tables may add the great deal of the organization on help clear any possible confusion on what you are trying to communicate.

  What is the rest balance at the end of one year

A student borrows 3,000 at an interest rate of 2 % per month on the unpaid balance. If the student pays $200 at the end of each month, what will be the remaining balance at the end of one year.

  Potential vulnerabilities in purchasing with a debit card

Recognize any potential vulnerabilities in the act of forming a purchase along with a debit card.

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