COMP 340 - HOMEWORK #1 DUE DATE: October 5th, 2022. Submission: Email zip file to steven.pearce@ufv.ca...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
COMP 340 - HOMEWORK #1 DUE DATE: October 5th, 2022. Submission: Email zip file to steven.pearce@ufv.ca (your code must compile). TASK: Build a simple shell. Cite all references! Do not copy and paste code. DESCRIPTION: Write a shell program in C similar to "csh" that takes commands from the keyboard. In particular, your shell prompt must be the current time (instead of, say, % as is common in UNIX). Make it simple; that is, do not allow it to handle background processes, it can ignore the control-C key, and especially, do not design it to interpret shell scripts. You will need the following system calls: fork waitpid one of execv, execve, execvp (read the manual pages). You must NOT use the C library function "system" (you will receive a grade of zero if you do!). NOTES: This assignment is designed to get you familiar with UNIX and C. If you find that you are writing a lot of code, then something is wrong. You are to demonstrate your code in class either on your computer or the PC in the laboratory. After that, you will submit a single .ZIP, .RAR or .TAR file on my datastick that will contain: 1) A soft copy of your source code. 3) A soft copy of a report documenting the internal design of your program. COMP 340 - HOMEWORK #1 DUE DATE: October 5th, 2022. Submission: Email zip file to steven.pearce@ufv.ca (your code must compile). TASK: Build a simple shell. Cite all references! Do not copy and paste code. DESCRIPTION: Write a shell program in C similar to "csh" that takes commands from the keyboard. In particular, your shell prompt must be the current time (instead of, say, % as is common in UNIX). Make it simple; that is, do not allow it to handle background processes, it can ignore the control-C key, and especially, do not design it to interpret shell scripts. You will need the following system calls: fork waitpid one of execv, execve, execvp (read the manual pages). You must NOT use the C library function "system" (you will receive a grade of zero if you do!). NOTES: This assignment is designed to get you familiar with UNIX and C. If you find that you are writing a lot of code, then something is wrong. You are to demonstrate your code in class either on your computer or the PC in the laboratory. After that, you will submit a single .ZIP, .RAR or .TAR file on my datastick that will contain: 1) A soft copy of your source code. 3) A soft copy of a report documenting the internal design of your program.
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Match each of the following energy band structures with the type of material it represents. Show Work A B C Empty conduction band Band gap Filled valence band Empty conduction band Band gap Filled...
-
Prepare a Risk Assessment on SanGrafix, a video game design company. Risk Assessment can be as simple as noting an unlocked door or a password written on a note, or it can be a complex process...
-
A common tactic to manage earnings is to stuff the channels that is, to ship product prematurely to dealers and customers, thereby inflating sales for the period. A case in point is Bristol- Myers...
-
Do Audience Ratings Differ Based on the Genre of the Movie? The dataset HollywoodMovies includes a quantitative variable on the AudienceScore of the movie as well as a categorical variable Variable...
-
Which portfolio is better diversified, one that contains stock in a dental supply company and a candy company or one that contains stock in a dental supply company and a dairy product company?
-
A new wave-soldering machine is expected to save Burnaby Circuit Boards $16,000 per year through reduced labour costs and increased quality. The device will have a life of nine years and will have no...
-
Suzi Nomro operates Watercraft Supply Company, an online boat parts distributorship that is in its third year of operation. The following income statement was prepared for the year ended October 31,...
-
Question 3: The transmission of a disease in a population in represented by the equationl dI = BI(1 /2 ) - = dt )- . where I is the number of the infected individuals in the population i. What do...
-
Hillary Corporation has its own cafeteria with the following annual costs:Food$200,000 Labour150.000 Overhead220,000 Total$575.000 The overhead is 40% fixed. Of the fixed overhead, $50,000 is the...
-
Plymouth Corporation has only one class of stock. There are 8 4 , 0 0 0 shares outstanding. During 2 0 X 1 , the corporations net income after taxes was $ 6 7 2 , 0 0 0 . The policy of the...
-
Complete the following to determine the restrictions on net position at the government-wide level. Be sure to deduct accrued interest on long-term debt in calculating the December 31, 2023, balance...
-
Provide an outline of your memo to Samantha. Address the following issues: 1. Write an introduction to taxation of gifts and estates. 2. Identify and explain at least 3 estate tax planning...
-
What does McLuhan mean by "the medium is the message?" Answer this question to the best of your ability, citing McLuhan's chapter at least three times. Summarize Benjamin, citing him at least twice....
-
Questions to Answer: How might Elaine minimize the tax implication of C Corporation status? What advice would you give to Elaine in choosing her business entity form? Required information Entity...
-
Determine the resultant moment produced by the forces about point O. 0.25 m 0.125 m, 0 0.3 m- 60 F = 500 N F = 600 N
-
Clarita is a single taxpayer with two dependent children, ages 10 and 12. Clarita pays $3,000 in qualified child care expenses during the year. If her adjusted gross income (all from wages) for the...
-
John Fuji (age 37) moved from California to Washington in December 2011. He lives at 468 Cameo Street, Yakima, WA 98901. John's Social Security number is 571-78-5974 and he is single. His earnings...
-
Sally and Charles Heck received the following dividends and interest during 2012: Assuming the Hecks file a joint tax return, complete Schedule B of Form 1040 (on page 2-33) for them for the 2012 tax...
-
An article on barrons.com observed that the U.S. dollar has been droppingand thats good news for the stock market and companies that get a large chunk of their sales from overseas. a. What does the...
-
In May 2023, the Bureau of Economic Analysis (BEA) issued a revised estimate of the change in real GDP during the first quarter of 2023. The BEAs news release describing the revisions noted that the...
-
During the second quarter of 2020, real inventories declined by $274 billion, by far the largest decline on record. During the third quarter of 2020, real GDP increased by 35 percent, by far the...
Study smarter with the SolutionInn App