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

  Write recursive version of array-based linear search

Write an algorithm but not code. Write a recursive version of the array-based linear search algorithm. Write a recursive version of the linked-list-based linear search algorithm."""

  Create divide and conquer algorithm to solve problem

Create a divide and conquer algorithm to solve problem. The time complexity of your algorithm must be O(nlgn) or better.

  Calculate the size of the state space as a function of n

n vehicles occupy squares (1, 1) through ( n , 1) (i.e., the bottom row) of an n × n grid. The vehicles must be moved to the top row but in reverse order

  Advanced systems analysis and design

Produce a system specification indicating functional and non-functional requirements - Generate suitable prioritised Use Cases for the system.

  Prepare the initial linked list of students and grades

Write a C program which initially presents menu of choices for the user. Menu must consist of the following choices: Prepare the initial linked list of students and grades.

  Algorithm to produce schedule for least completion time

What is the best order for sending people out, if one wants whole competition to be over as early as possible? More precisely, provide efficient algorithm which produces schedule whose completion time is as small as possible.

  Explaining use of encryption-virus and vpn

Write down the suitable example of best use of Encryption, Virus, VPN, Firewall securities, when and explain why?

  Developing a new application system

Assume you have been assigned as manager on a assignment to develop a new application system for your business partner. You were given 2-weeks to construct a project plan and high level cost estimates.

  Question about oracle9i database

Provide every worker in the Local Locale Company the privileges required to query and update the NEWS_ARTICLE table and the CLASSIFIED_AD table.

  Ambiguity in proposed algorithm-in representation algorithm

Describe distinction between the ambiguity in proposed algorithm and ambiguity in representation of the algorithm.

  Dhcp server at each network segment

Discuss the drawbacks and benefits of having a DHCP server on each network section, versus having some of the network sectionsreceive their IP address and network configuration via a router using a DHCP relay agent?

  Questionm about distributed database

Explain what a distributed database is and how replication works with respect to managing the information in these databases.

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