Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

Q.No.1 Explain Large scale map ? Q.No.2 Explain small scale map ?

Answered: 1 week ago