Problem

This project is the first in a series of projects to develop a sample application that t...

This project is the first in a series of projects to develop a sample application that tracks telephone number and other information for employees in an organization. In this project, you first ensure that you have a source subdirectory in which to store the source files you develop. Next, you create the initial menu that users see when they execute the application. Be certain you retain the phmenu script file that you create here so you can use it in later projects.

To set up your source subdirectory:

1. In Chapter 4, you created a source subdirectory under your home directory. With your home directory as your current working directory (type cd and press Enter), type ls and press Enter to ensure that your source subdirectory exists. If it does not exist, type mkdir source, and press Enter.

2. Type cd source and press Enter to make the source directory your current working directory. Be certain you are in your source directory for all of the projects that follow in this chapter. In this way, you ensure that your application files are in one place.

To begin work on the menu for your application:

1. Use the vi or Emacs editor to enter the phmenu script shown next.

2. Save the file and exit the editor.

3. Give the file execute permission by typing chmod a+x phmenu and pressing Enter. Next, test the script by typing ./phmenu and pressing Enter. (See Figure 6-17.) (You have to press Ctrl+c to exit the script because the Quit option has not yet been programmed.)

4. Clear the screen for the next project.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search