Question: In UNIX operating system: Overview In the previous assignment, you became familiar with git, tar, make, and gdb. This project extends lessons learned in the

In UNIX operating system:

In UNIX operating system: Overview In the previous assignment, you became familiar

with git, tar, make, and gdb. This project extends lessons learned in

Overview In the previous assignment, you became familiar with git, tar, make, and gdb. This project extends lessons learned in the previous assignment by adding functionality to your new application. The project functionality that you must implement follows: Project Name: You can copy/use Assignment 4 as a template for the project changing the application name to "findName" as a starting point. You might also use the c++ templates provided as a starting point. Input: A CSE userid - Your C++ program must accept the userid as a command line argument. Your C++ program will pass the userid as a command line argument to a shell script which must execute some code using the userid passed from the program. Output: The Full name of the user specified by the input userid. This only needs to work for students enrolled in CSCE215 this Semester Part 1: (7 points) Create a shell script that returns a full name associated with a userid specified in the command line argument. Use the names found in /acct/common/CSCE215 Your shell script should be named "findName.sh" Example usage: $ ./findName.sh seiei SETSUNA F SEIEI Your shell script must either: * Return the full name associated with the userid or * Return an error message if the command line arguments are not equal to 1. or * Return the message "Sorry that person is not in CSCE215 this semester" No other output is acceptable. Part 2: find Name program (8 points) 1. Create a C++ program that takes a command line argument value (userid) and passes this argument to a shell script. (HINT: system()] 2. As in the previous assignment, modify your makefile to include a rule that creates a backup of the source files, makefile, and readme in an archive directory in your home directory structure. Submit an uncompressed tar file named $USER.findname.tar with your modified source code files only. (ie yourUserid.findname.tar) Be sure to document your code in a README file. In order to obtain credit for your project your submission must react properly to the following commands: $ tar xvf $USER.findname.tar $ make $ ./findName someuserid 3. Your program will be graded based on it's ability to execute the above commands and return one of 3 allowable outputs: first lastname, or some error message based on an incorrect number of command line arguments, or the message stating that the user is not in CSCE215 this semester

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!