Description
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
Completion Status:
100%
Review
Review
Anonymous
Awesome! Made my life easier.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
50 pages
It230 Project
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the a ...
It230 Project
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files ...
Need help with Alice3
Build a world containing a person who can calculate the average from a sequence of numbers in his or her head. Have the pe ...
Need help with Alice3
Build a world containing a person who can calculate the average from a sequence of numbers in his or her head. Have the person ask the user how many numbers are in the sequence and then use the getDoubleFromUser() function to get the numbers from the user. When all the numbers have been entered, have the person “say” the average of those numbers. Need a working model to see how the code interacts and which processes to follow.
Circle Class Homework Python Programming Assignment
Please see all the instructions on the filed attached. Please follow all the steps as they are described in the assignment ...
Circle Class Homework Python Programming Assignment
Please see all the instructions on the filed attached. Please follow all the steps as they are described in the assignment Make sure to finish all the 8 steps in the assignment and submit it as it's asked on the file. please make sure that your personal information does not show on the assignment ( as many tutors forget about this) Please submit it as soon as you finish it. Your help is really appreciated, Thanks!
6 pages
Visualizationweek3
In Chapter 12, we explored many different ways to “look at” the numbers. For this lab, let’s explore This activity d ...
Visualizationweek3
In Chapter 12, we explored many different ways to “look at” the numbers. For this lab, let’s explore This activity description does not provide ...
CSC415 San Francisco State University Building Simple Shell Project
CSC 415 - Building Simple Shell
Project 3
Total Points: 150 Points
Description
For this assignment you will implement ...
CSC415 San Francisco State University Building Simple Shell Project
CSC 415 - Building Simple Shell
Project 3
Total Points: 150 Points
Description
For this assignment you will implement your own Shell or Command Line Interpreter (e.g.
to replace /bin/bash for simple interactions with the Linux Kernel.). Your shell will be
character-oriented, and will fork off processes to execute user entered commands.
Your shell should read lines of user input into a 256-byte buffer, then parse and execute
the commands (be sure to clear the buffer between successive commands!) It should be
possible for the user to specify the command to execute by giving an absolute path to
the file containing the executable (e.g. ./hw1); or to use path expansion to locate the file
containing the executable by using the environment PATH variable to construct a series of
absolute paths and executing the first file found in this way (note that the execvp() command
performs this processing automatically, you do not need to program this yourself!) Your
code should parse the input string and separate it into a collection of sub-strings (stored in
myargv[]) along with a count of the number of strings encountered (stored in myargc). Note
that piped commands will require multiple argc/argv instances!
Shell Requirements
Your shell should support the following functions (Note : this does not mean your shell
should implement LS but rather the ability to execute the LS program):
• Must maintain myargc and myargv for commands you will fork. In some cases you
may need multiple instances for pipe commands.
• The commands cd and pwd must be implemented in your shell.
• Execute a single command with up to four command line arguments (including command line arguments with associated flags). For example:
– myshell>> ls –l
– myshell>> cat myfile
– myshell>> ls –al /usr/src/linux
• Execute a command in background. For example:
– myshell>> ls -l &
– myshell>> ls –al /usr/src/linux &
1
• Redirect the standard output of a command to a file. For example:
– myshell>> ls -l > outfile
– myshell>> ls -l >> outfile
– myshell>> ls –al /usr/src/linux > outfile2
– myshell>> ls –al /usr/src/linux >> outfile2
• Redirect the standard input of a command to come from a file. For example:
– myshell>> grep disk < outfile
– myshell>> grep linux < outfile2
• Execute multiple commands connected by a single shell pipe. For example:
– myshell>> ls –al /usr/src/linux | grep linux
– myshell>> ls -la | wc -l
• Execute the cd and pwd commands
– myshell>> cd some path
– myshell>> pwd
**NOTE** That in most Linux distros CD and PWD are not a program like ls but
rather they are shell built-ins. Built-ins are shell commands that are implemented in the
shell and not some external binary. For giving your shell the cd and pwd commands, you
need to implement these functions in the shell with your code, even if it is provided by your
OS. This can be done with the chdir() and getcwd() functions in unistd.h
Suggested implementation strategy to implement a shell with multiple command line arguments (using iterative refinement):
- Implement your shell to simply initialize your shell, display a prompt, read in user
input and print it back to the console.
- Add functionality to your shell to parse user input setting the correct values for myargv
and myargc. Once parsed, print myargv and myargc to the console. Note that myargvs
need to be null terminated for the exec commands to interpret them correctly.
- Add functionality to your shell to execute simple shell commands. Start with commands like ls, then commands with options like ls -la /home.
2
- Add functionality to shell to execute input and output redirection. It is required to
implement >, >>, and <.
- Add functionality to shell to execute commands in the background. For example
commands like : ls -la &
- Add functionality to your shell to execute the cd and pwd commands. Note these need
to be implemented in your shell. Use the chdir() and getpwd() functions to implement
these shell commands.
- Add functionality to your shell to execute piped commands. These are commands that
are connected by a shell pipe, |.
Extra Credit
To get points for EC, your shell needs to work first. Broken shells are not eligible for EC.
• (15 - Points) Implement your shell so that any combination of shell commands from
above can be used in a single command line.
For example, ls -la | wc -l | wc -b OR ls -la | grep *.c | wc -l
• (10 - Points) Implement the shell so the current working directory is shown on the
prompt. For example:
OLD PROMPT:
myshell >>
NEW PROMPT:
∗ myshell ~/ >>
∗ myshell ~/hw3 >>
∗ myshell ~/hw3/build >>
∗ myshell /etc >>
∗ myshell /etc/apach2 >>
DO NOT hard code the home path to your computer, you need to detect the home
path of the computer your shell is executing on. Make sure ~/ is printed in all correct
situations.
• ( 30 - Points) Add the functionality to your shell to store a history of all commands
executed. This includes the ability to scroll through this history as well and rerun
previously entered commands. See your basic Linux shell for examples. This also
requires the use of the up and down arrow keys to scroll through the list. Use of
readline header files IS NOT ALLOWED
3
What to submit
1. source code in myshell.c
2. updated README.md with required fields filled out.
How to submit
• git add .
• git commit -m ” message”
• git push
4
Android Programming 5
StudentUnit 2 Discussion BoardMobile ProgrammingProfessor1.I’d like to make an app for gamers of all types
that helps t ...
Android Programming 5
StudentUnit 2 Discussion BoardMobile ProgrammingProfessor1.I’d like to make an app for gamers of all types
that helps them find other gamers to level, run missions etc. with.2.The app will have PC, XB, Playstation, Nintendo
etc. and let people look for the type of gaming buddy they want to play a game
on a system with.3.There are forums like Gamerpals, Playdate,
PartyUpPlayer out there but I think they don’t cover enough platforms.4.My app will have multiple playstyles, platforms,
playtypes and time slots for signups.For this IP, you will upload your completed app proposal, in the form of a PowerPoint presentation, which should include all of the elements listed below and incorporate any feedback you received on your draft, which was submitted to the Discussion Board last week:
Identify the problem your app is designed to solve and explain how your app solves it (bullet points are fine).
Describe any comparable apps currently on the market and explain how your app will be different or better.
List your revised requirements (at least 10) and corresponding test case scenarios.
Include your Pseudocode.
Include screenshots of your working app (one slide for every app screen).
Include a description of how you could incorporate either an ads bar or an in-app purchase into your app. Note: You are not required to actually include these elements, just describe a possible way that you could do so.
Similar Content
IT 405 SEU Blood Bank Database with 3 Tables Donors Blood and Clinics Program
Q1. By using MySQL, create a “Blood_Bank” database, the database has three tables: Donors, Blood, and Clinics.
The Do...
This is for my discussion group maximium 2 paragraphs
Describe the process used for requirements analysis of a business application to develop entities, attributes, and relatio...
NAU Java Programing Line of Arrays Discussion
Discuss the associated API's (e.g. add, remove) for the linked list, array of your favorite programming (e.g. Python, Java...
Seneca College Website Design Project
please create a web page link so I can post my assignments, so technically I need to create a web page link and use that l...
Chicago State University Module 4 Loops and Files Project
Mandatory activity:
Download the description of Practice ProblemsDownload Practice Problems and Student Files Do...
Homework assignment
There are three parts to the Homework.please keep it simple. No need for //comments. just the code is fine.Please submit e...
Matlab 2
Quiz: MATLAB Vectors and Matrices check Question #2: What vector is generated by the following Question #3: The task is to...
Database Administrator Oracal Sql
Oracle provides a set of commands that allows for creation and configuration of database user. Once created a database use...
5ans
int** transpose(int **arr, int rows, int columns){ for(int i=0; i...
Related Tags
Book Guides
Into Thin Air
by Jon Krakauer
50 Shades of Grey
by E. L. James
Notes from Underground
by Fyodor Dostoyevsky
Fences
by August Wilson
The President is Missing
by James Patterson, Bill Clinton
How to Win Friends and Influence People
by Dale Carnegie
The Mayor of Casterbridge
by Thomas Hardy
Brave New World
by Aldous Huxley
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
50 pages
It230 Project
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the a ...
It230 Project
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files ...
Need help with Alice3
Build a world containing a person who can calculate the average from a sequence of numbers in his or her head. Have the pe ...
Need help with Alice3
Build a world containing a person who can calculate the average from a sequence of numbers in his or her head. Have the person ask the user how many numbers are in the sequence and then use the getDoubleFromUser() function to get the numbers from the user. When all the numbers have been entered, have the person “say” the average of those numbers. Need a working model to see how the code interacts and which processes to follow.
Circle Class Homework Python Programming Assignment
Please see all the instructions on the filed attached. Please follow all the steps as they are described in the assignment ...
Circle Class Homework Python Programming Assignment
Please see all the instructions on the filed attached. Please follow all the steps as they are described in the assignment Make sure to finish all the 8 steps in the assignment and submit it as it's asked on the file. please make sure that your personal information does not show on the assignment ( as many tutors forget about this) Please submit it as soon as you finish it. Your help is really appreciated, Thanks!
6 pages
Visualizationweek3
In Chapter 12, we explored many different ways to “look at” the numbers. For this lab, let’s explore This activity d ...
Visualizationweek3
In Chapter 12, we explored many different ways to “look at” the numbers. For this lab, let’s explore This activity description does not provide ...
CSC415 San Francisco State University Building Simple Shell Project
CSC 415 - Building Simple Shell
Project 3
Total Points: 150 Points
Description
For this assignment you will implement ...
CSC415 San Francisco State University Building Simple Shell Project
CSC 415 - Building Simple Shell
Project 3
Total Points: 150 Points
Description
For this assignment you will implement your own Shell or Command Line Interpreter (e.g.
to replace /bin/bash for simple interactions with the Linux Kernel.). Your shell will be
character-oriented, and will fork off processes to execute user entered commands.
Your shell should read lines of user input into a 256-byte buffer, then parse and execute
the commands (be sure to clear the buffer between successive commands!) It should be
possible for the user to specify the command to execute by giving an absolute path to
the file containing the executable (e.g. ./hw1); or to use path expansion to locate the file
containing the executable by using the environment PATH variable to construct a series of
absolute paths and executing the first file found in this way (note that the execvp() command
performs this processing automatically, you do not need to program this yourself!) Your
code should parse the input string and separate it into a collection of sub-strings (stored in
myargv[]) along with a count of the number of strings encountered (stored in myargc). Note
that piped commands will require multiple argc/argv instances!
Shell Requirements
Your shell should support the following functions (Note : this does not mean your shell
should implement LS but rather the ability to execute the LS program):
• Must maintain myargc and myargv for commands you will fork. In some cases you
may need multiple instances for pipe commands.
• The commands cd and pwd must be implemented in your shell.
• Execute a single command with up to four command line arguments (including command line arguments with associated flags). For example:
– myshell>> ls –l
– myshell>> cat myfile
– myshell>> ls –al /usr/src/linux
• Execute a command in background. For example:
– myshell>> ls -l &
– myshell>> ls –al /usr/src/linux &
1
• Redirect the standard output of a command to a file. For example:
– myshell>> ls -l > outfile
– myshell>> ls -l >> outfile
– myshell>> ls –al /usr/src/linux > outfile2
– myshell>> ls –al /usr/src/linux >> outfile2
• Redirect the standard input of a command to come from a file. For example:
– myshell>> grep disk < outfile
– myshell>> grep linux < outfile2
• Execute multiple commands connected by a single shell pipe. For example:
– myshell>> ls –al /usr/src/linux | grep linux
– myshell>> ls -la | wc -l
• Execute the cd and pwd commands
– myshell>> cd some path
– myshell>> pwd
**NOTE** That in most Linux distros CD and PWD are not a program like ls but
rather they are shell built-ins. Built-ins are shell commands that are implemented in the
shell and not some external binary. For giving your shell the cd and pwd commands, you
need to implement these functions in the shell with your code, even if it is provided by your
OS. This can be done with the chdir() and getcwd() functions in unistd.h
Suggested implementation strategy to implement a shell with multiple command line arguments (using iterative refinement):
- Implement your shell to simply initialize your shell, display a prompt, read in user
input and print it back to the console.
- Add functionality to your shell to parse user input setting the correct values for myargv
and myargc. Once parsed, print myargv and myargc to the console. Note that myargvs
need to be null terminated for the exec commands to interpret them correctly.
- Add functionality to your shell to execute simple shell commands. Start with commands like ls, then commands with options like ls -la /home.
2
- Add functionality to shell to execute input and output redirection. It is required to
implement >, >>, and <.
- Add functionality to shell to execute commands in the background. For example
commands like : ls -la &
- Add functionality to your shell to execute the cd and pwd commands. Note these need
to be implemented in your shell. Use the chdir() and getpwd() functions to implement
these shell commands.
- Add functionality to your shell to execute piped commands. These are commands that
are connected by a shell pipe, |.
Extra Credit
To get points for EC, your shell needs to work first. Broken shells are not eligible for EC.
• (15 - Points) Implement your shell so that any combination of shell commands from
above can be used in a single command line.
For example, ls -la | wc -l | wc -b OR ls -la | grep *.c | wc -l
• (10 - Points) Implement the shell so the current working directory is shown on the
prompt. For example:
OLD PROMPT:
myshell >>
NEW PROMPT:
∗ myshell ~/ >>
∗ myshell ~/hw3 >>
∗ myshell ~/hw3/build >>
∗ myshell /etc >>
∗ myshell /etc/apach2 >>
DO NOT hard code the home path to your computer, you need to detect the home
path of the computer your shell is executing on. Make sure ~/ is printed in all correct
situations.
• ( 30 - Points) Add the functionality to your shell to store a history of all commands
executed. This includes the ability to scroll through this history as well and rerun
previously entered commands. See your basic Linux shell for examples. This also
requires the use of the up and down arrow keys to scroll through the list. Use of
readline header files IS NOT ALLOWED
3
What to submit
1. source code in myshell.c
2. updated README.md with required fields filled out.
How to submit
• git add .
• git commit -m ” message”
• git push
4
Android Programming 5
StudentUnit 2 Discussion BoardMobile ProgrammingProfessor1.I’d like to make an app for gamers of all types
that helps t ...
Android Programming 5
StudentUnit 2 Discussion BoardMobile ProgrammingProfessor1.I’d like to make an app for gamers of all types
that helps them find other gamers to level, run missions etc. with.2.The app will have PC, XB, Playstation, Nintendo
etc. and let people look for the type of gaming buddy they want to play a game
on a system with.3.There are forums like Gamerpals, Playdate,
PartyUpPlayer out there but I think they don’t cover enough platforms.4.My app will have multiple playstyles, platforms,
playtypes and time slots for signups.For this IP, you will upload your completed app proposal, in the form of a PowerPoint presentation, which should include all of the elements listed below and incorporate any feedback you received on your draft, which was submitted to the Discussion Board last week:
Identify the problem your app is designed to solve and explain how your app solves it (bullet points are fine).
Describe any comparable apps currently on the market and explain how your app will be different or better.
List your revised requirements (at least 10) and corresponding test case scenarios.
Include your Pseudocode.
Include screenshots of your working app (one slide for every app screen).
Include a description of how you could incorporate either an ads bar or an in-app purchase into your app. Note: You are not required to actually include these elements, just describe a possible way that you could do so.
Earn money selling
your Study Documents