Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the korn shell for this project. Using the select command from the korn shell, write a menu driven script that calls your trash script

Use the korn shell for this project. Using the select command from the korn shell, write a menu driven script that calls your trash script from Project 4 in the following manner:

Menu item 1 calls trash l

Menu item 2 calls trashp

Menu item 3 asks the user for a file or a list of files, and calls trash sending those files.

Menu item 4 should exit the script.

Do not have a menu item for the empty string.

Be careful of your trash scripts location and permissions of the trash folder and the trash script. I must be able to access and run the trash script and create the trash folder. For the menu script to access your trash script, you will need to include the path to your trash script in each call in the menu script. You will also need to have your trash script in an accessible directory.

image text in transcribed

kitchind@ats-cis:~/bin /home/students/kitchind/bin>project6 Trash Menu 1) list 2) purge 3) trash files 4) exit #? 1 There are no files in trash #? 3 List the files to trash with a space between them: testl #? 1 testl #? 3 List the files to trash with a space between them: test2 test3 testx testx is not a file #? 1 testl test2 test3 #? 2 #? 3 List the files to trash with a space between them: test4 #? 1 test4 #? 4 home/students/kitchind/bin

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

1. Explain how technology has changed the learning environment.

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago