Unix Shell, Programming Languages

#quFollow the my shell programming guidelines as in the other assignments.
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, you should use the full (real) name from the passwd file (/etc/passwd).
You also need to sign the script with the real name of the person who is running the script.
This can be derived from the $USER environment variable and looking up the value in the password file.
An error message should be printed if the user does not exist in the passwd file.
You can always use yourself and me (mrichard) as a test case
The real name of the user of the script should only be computed once.
A "Here-Document (In-Line Redirection)" must be used for the mail message.
No temporary files shall be used.
The message should be as follows:
Hello ,
**** This email is automatically generatated by ******
My instructor requires that I send this message as part of an assignment for class 92.312.
The current time and date is .
Have a nice day.
Posted Date: 11/10/2012 7:39:15 PM | Location : United States

Related Discussions:- Unix Shell, Assignment Help, Ask Question on Unix Shell, Get Answer, Expert's Help, Unix Shell Discussions

Write discussion on Unix Shell
Your posts are moderated
Related Questions
Architecture and Components The .NET Framework 3.5 The .NET Structure (pronounced dot net) is an application framework that works generally on Enthusiasm Microsoft windows. It has

Access Modifiers Convenience Modifiers or we can say (Access Specifies) identifies as the opportunity of accessibility of an Item and its associates. All C# kinds and kind associat

Scenario A campsite provides cabins for travellers to stay in overnight. A 'cabin' is a small wooden hut, containing bunk beds, table and chairs, a heater, and a small cookin

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

What are Relative URLS ? When a web browser reads an HTML document, it has a great deal of information about the document. This includes the protocol used to retrieve the docu

Components of .NET Framework 3.5 .NET Framework Conceptual Overview Presents the .NET Structure and its elements. Installing the .NET Framework Provides information about .NET Stru

We next require taking a look at arithmetic involving matrices. We'll begin with addition and subtraction of two matrices. Therefore, assume that we have two n x m matrices, which

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

1.  Develop a page to indicate distinct attributes of Font tag. 2.  Develop a page to indicate different attributes: bold, italics, underline. 3.  Design a page with backgrou

Define the Control statements in Computer Programming? The statements are part of the program that performs some action. The compiler will check a program sequentially from the