SlideShare a Scribd company logo
Week 2 IP
Weekly tasks or assignments (Individual or Group Projects) will
be due
by
Monday and late submissions will be assigned a late penalty in
accordance with the late penalty policy found in the syllabus.
NOTE: All submission posting times are based on midnight
Central Time.
You now need to write a script for user maintenance. Write a
script that will perform the following tasks:
Prompt the system administrator for all valid input parameters
Generate a menu to ask which task is needed to be performed
Create a UNIX group
Drop a UNIX group
Create a user
Drop a user
Note that as part of the Create User section, a UNIX group
many be identified that does not already exist, so that group
will need to be created as part of the process.
A third script that you need to write will kill all of the
processes associated with a user. The following are the
requirements:
Prompt the system administrator for the target user name
List the running processes for that user
Confirm with the system administrator before killing the
processes
Kill the processes after confirmation
It is very important to note with this task that you should only
kill processes for a user and his or her running processes; do not
arbitrarily kill running daemons.
Include a discussion about the difference between user
processes and daemons.
What are daemons, and what are they used for?
What are the consequences of killing a daemon using this
script?
Add the 2 scripts and the discussion about daemons to the
project template section "UNIX Processes."
Week 3 IP
Weekly tasks or assignments (Individual or Group Projects) will
be due
by
Monday and late submissions will be assigned a late penalty in
accordance with the late penalty policy found in the syllabus.
NOTE: All submission posting times are based on midnight
Central Time.
To become familiar with Perl programs and to see how to
interact with the operating system, write a Perl program that
performs the following tasks:
Generate a menu to ask the user for the task that he or she
would like to see performed.
The available tasks are as follows:
Show current date and time.
Show users currently logged in.
Show the name of the working directory.
Show the contents of the working directory.
Prompt the user for the choice, and perform the system
command.
Also, describe how
variables
in Perl are handled, specifically with respect to the need for
declaration and type casting.
Add the script and the discussion about variables to the project
template section "Introduction to Perl."
week 4 IP
Weekly tasks or assignments (Individual or Group Projects) will
be due
by
Monday and late submissions will be assigned a late penalty in
accordance with the late penalty policy found in the syllabus.
NOTE: All submission posting times are based on midnight
Central Time.
Convert your second shell script (User Maintenance) into a Perl
script. This Perl script must perform the following tasks:
Generate a menu to ask the system administrator for the task
that he or she would like to see performed.
The available tasks are as follows:
Create a UNIX group.
Drop a UNIX group.
Create a user.
Drop a user.
Prompt the user for the choice, and perform the system
command.
In addition, check to make sure that before creating either the
user or the group that neither already exists; if it does already
exist, print out the existing user ID, comment field, and home
directory locations from the password file.
Include a discussion about what regular expressions are and
how Perl efficiently includes regular expression processing in
the language. Be sure to state examples.
Add the Perl code and the discussion about Regular Expressions
to the project template section "Writing Perl Programs."
week 5 IP
Weekly tasks or assignments (Individual or Group Projects) will
be due
by
Monday and late submissions will be assigned a late penalty in
accordance with the late penalty policy found in the syllabus.
NOTE: All submission posting times are based on midnight
Central Time.
You have completed the code for the automation of the required
tasks; the final step is to submit the script to the team for use.
After you have incorporated any appropriate feedback into your
project, one last requirement needs to be addressed.
Add to your Perl script the ability to kill a user’s processes
(from shell script 3). The requirements for this task include the
following:
Add this option to the menu.
Add the code/process into a subroutine.
Use an array to store the list of processes that need to be
reviewed and killed.
Process the kill using the array.
Next, you have been asked by different users to explain how to
compile a program in a UNIX environment.
Finally, take the following C program (save it as "power2.c"),
and create it as a file in your UNIX environment:
/* power2.c -- Print out powers of 2: 1, 2, 4, 8, .. up to 2^N */
#include
#define N 16
int main(void) {
int n; /* The current exponent */
int val = 1; /* The current power of 2 */
printf("t n t 2^nn");
printf("t================n");
for (n=0; n<=N; n++) {
printf("t%3d t %6dn", n, val);
val = 2*val;
}
return 0;
}
/* It prints out :
n 2^n
===============
0 1
1 2
2 4
3 8
4 16
5 32
6 64
7 128
8 256
9 512
10 1024
11 2048
12 4096
13 8196
14 16384
15 32768
16 65536
*/
(College of Science and Technology, n.d.)
Describe the behavior when you compile the program, with no
options. What is the command that you would use to compile
the code and create the executable "power2"?
Finally, compare and contrast the usage of a compiled and
interpreted program.

More Related Content

PDF
Pos 433 pos433
PDF
POS 433 Effective Communication - tutorialrank.com
DOCX
Unix lab manual
DOCX
POS 433 Enhance teaching - snaptutorial.com
PPTX
Cis 216 – shell scripting
PDF
Pos 433 Effective Communication-snaptutorial.com
DOCX
POS 433 Education Organization / snaptutorial.com
DOC
Pos 433 Exceptional Education-snaptutorial.com
Pos 433 pos433
POS 433 Effective Communication - tutorialrank.com
Unix lab manual
POS 433 Enhance teaching - snaptutorial.com
Cis 216 – shell scripting
Pos 433 Effective Communication-snaptutorial.com
POS 433 Education Organization / snaptutorial.com
Pos 433 Exceptional Education-snaptutorial.com

Similar to Week 2 IPWeekly tasks or assignments (Individual or Group Projec.docx (20)

DOC
Pos 433 Education Specialist-snaptutorial.com
DOCX
2. Assume that you are hired as the Network Administrator for a smal.docx
DOCX
RESEARCHED ARGUMENT ESSAY GUIDELINES (Based on Tom Regan’.docx
PDF
Summarized of UNIX Time Sharing System
DOCX
POS 433 Extraordinary Life/newtonhelp.com 
DOCX
POS 433  Focus Dreams/newtonhelp.com
DOCX
POS 433 Creative and Effective/newtonhelp.com
DOCX
POS 433 Inspiring Innovation/tutorialrank.com
PDF
Perl_Part3
DOCX
1. This is a real test, which means you must do your own w.docx
PPTX
Unix OS & Commands
PPTX
Operating System Laboratory presentation .ppt
PPT
Unix tutorial-08
PPTX
unix class 2 old scheme vtu syllabus old data
PDF
UNIX CLASS 2 PPT for reference found in sysyem
PPTX
Operating systems unix
PPTX
UNIX Notes
PPT
Unix tutorial-08
PPT
unix training | unix training videos | unix course unix online training
PPT
Pos 433 Education Specialist-snaptutorial.com
2. Assume that you are hired as the Network Administrator for a smal.docx
RESEARCHED ARGUMENT ESSAY GUIDELINES (Based on Tom Regan’.docx
Summarized of UNIX Time Sharing System
POS 433 Extraordinary Life/newtonhelp.com 
POS 433  Focus Dreams/newtonhelp.com
POS 433 Creative and Effective/newtonhelp.com
POS 433 Inspiring Innovation/tutorialrank.com
Perl_Part3
1. This is a real test, which means you must do your own w.docx
Unix OS & Commands
Operating System Laboratory presentation .ppt
Unix tutorial-08
unix class 2 old scheme vtu syllabus old data
UNIX CLASS 2 PPT for reference found in sysyem
Operating systems unix
UNIX Notes
Unix tutorial-08
unix training | unix training videos | unix course unix online training

More from candycemidgley (20)

DOCX
Week 2 DiscussionPlease respond to one of the following questi.docx
DOCX
Week 2 Discussion 1- 51415Social Versus Human CapitalThis we.docx
DOCX
Week 2 discussion topic1) Computer security is essential to .docx
DOCX
Week 2 Discussion - Best Places to WorkLooking at the top three (3.docx
DOCX
Week 2 Argument Paper Outline TemplateENG200 Version 2 1.docx
DOCX
Week 2 Assignment 1Challenges of Transitioning in a Professional E.docx
DOCX
Week 2Testing means - T-testsIn qu.docx
DOCX
Week 11a.Analyze the need for unbiased financial repor.docx
DOCX
Week 2 What is driving the need for this transformational change (.docx
DOCX
This is for a case study on Jeffery Dahmer.I needBiological Fa.docx
DOCX
This is due in 24 hoursThere are 4 big questions in total. The a.docx
DOCX
this is first questionDo you feel that the TCPIP model is more or.docx
DOCX
This is due by 2000 tonight EST.  It must be 300+ words, MLA, and a.docx
DOCX
This is assignment is due tomorrow.Reread the discussion board res.docx
DOCX
This is basic college admissions essay.There are many interest.docx
DOCX
This is an open-book essay exam. Please answer both questions in.docx
DOCX
This is for a discussion post! Need to have one resource!!!To .docx
DOCX
This is for kristine tutor  Make sure I do not want to get a.docx
DOCX
This is an extra credit assignment. You are to write an essay on one.docx
DOCX
This is an ELL(English Language Learner) assignmentFrom your requi.docx
Week 2 DiscussionPlease respond to one of the following questi.docx
Week 2 Discussion 1- 51415Social Versus Human CapitalThis we.docx
Week 2 discussion topic1) Computer security is essential to .docx
Week 2 Discussion - Best Places to WorkLooking at the top three (3.docx
Week 2 Argument Paper Outline TemplateENG200 Version 2 1.docx
Week 2 Assignment 1Challenges of Transitioning in a Professional E.docx
Week 2Testing means - T-testsIn qu.docx
Week 11a.Analyze the need for unbiased financial repor.docx
Week 2 What is driving the need for this transformational change (.docx
This is for a case study on Jeffery Dahmer.I needBiological Fa.docx
This is due in 24 hoursThere are 4 big questions in total. The a.docx
this is first questionDo you feel that the TCPIP model is more or.docx
This is due by 2000 tonight EST.  It must be 300+ words, MLA, and a.docx
This is assignment is due tomorrow.Reread the discussion board res.docx
This is basic college admissions essay.There are many interest.docx
This is an open-book essay exam. Please answer both questions in.docx
This is for a discussion post! Need to have one resource!!!To .docx
This is for kristine tutor  Make sure I do not want to get a.docx
This is an extra credit assignment. You are to write an essay on one.docx
This is an ELL(English Language Learner) assignmentFrom your requi.docx

Recently uploaded (20)

PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
01-Introduction-to-Information-Management.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Lesson notes of climatology university.
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Final Presentation General Medicine 03-08-2024.pptx
Weekly quiz Compilation Jan -July 25.pdf
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Paper A Mock Exam 9_ Attempt review.pdf.
01-Introduction-to-Information-Management.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
History, Philosophy and sociology of education (1).pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Final Presentation General Medicine 03-08-2024.pptx
Anesthesia in Laparoscopic Surgery in India
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Complications of Minimal Access Surgery at WLH
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Lesson notes of climatology university.
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Computing-Curriculum for Schools in Ghana
Final Presentation General Medicine 03-08-2024.pptx

Week 2 IPWeekly tasks or assignments (Individual or Group Projec.docx

  • 1. Week 2 IP Weekly tasks or assignments (Individual or Group Projects) will be due by Monday and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus. NOTE: All submission posting times are based on midnight Central Time. You now need to write a script for user maintenance. Write a script that will perform the following tasks: Prompt the system administrator for all valid input parameters Generate a menu to ask which task is needed to be performed Create a UNIX group Drop a UNIX group Create a user Drop a user Note that as part of the Create User section, a UNIX group many be identified that does not already exist, so that group will need to be created as part of the process. A third script that you need to write will kill all of the processes associated with a user. The following are the requirements: Prompt the system administrator for the target user name List the running processes for that user Confirm with the system administrator before killing the processes Kill the processes after confirmation It is very important to note with this task that you should only kill processes for a user and his or her running processes; do not arbitrarily kill running daemons. Include a discussion about the difference between user processes and daemons. What are daemons, and what are they used for? What are the consequences of killing a daemon using this
  • 2. script? Add the 2 scripts and the discussion about daemons to the project template section "UNIX Processes." Week 3 IP Weekly tasks or assignments (Individual or Group Projects) will be due by Monday and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus. NOTE: All submission posting times are based on midnight Central Time. To become familiar with Perl programs and to see how to interact with the operating system, write a Perl program that performs the following tasks: Generate a menu to ask the user for the task that he or she would like to see performed. The available tasks are as follows: Show current date and time. Show users currently logged in. Show the name of the working directory. Show the contents of the working directory. Prompt the user for the choice, and perform the system command. Also, describe how variables in Perl are handled, specifically with respect to the need for declaration and type casting. Add the script and the discussion about variables to the project template section "Introduction to Perl." week 4 IP Weekly tasks or assignments (Individual or Group Projects) will be due by
  • 3. Monday and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus. NOTE: All submission posting times are based on midnight Central Time. Convert your second shell script (User Maintenance) into a Perl script. This Perl script must perform the following tasks: Generate a menu to ask the system administrator for the task that he or she would like to see performed. The available tasks are as follows: Create a UNIX group. Drop a UNIX group. Create a user. Drop a user. Prompt the user for the choice, and perform the system command. In addition, check to make sure that before creating either the user or the group that neither already exists; if it does already exist, print out the existing user ID, comment field, and home directory locations from the password file. Include a discussion about what regular expressions are and how Perl efficiently includes regular expression processing in the language. Be sure to state examples. Add the Perl code and the discussion about Regular Expressions to the project template section "Writing Perl Programs." week 5 IP Weekly tasks or assignments (Individual or Group Projects) will be due by Monday and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus. NOTE: All submission posting times are based on midnight Central Time. You have completed the code for the automation of the required
  • 4. tasks; the final step is to submit the script to the team for use. After you have incorporated any appropriate feedback into your project, one last requirement needs to be addressed. Add to your Perl script the ability to kill a user’s processes (from shell script 3). The requirements for this task include the following: Add this option to the menu. Add the code/process into a subroutine. Use an array to store the list of processes that need to be reviewed and killed. Process the kill using the array. Next, you have been asked by different users to explain how to compile a program in a UNIX environment. Finally, take the following C program (save it as "power2.c"), and create it as a file in your UNIX environment: /* power2.c -- Print out powers of 2: 1, 2, 4, 8, .. up to 2^N */ #include #define N 16 int main(void) { int n; /* The current exponent */ int val = 1; /* The current power of 2 */ printf("t n t 2^nn"); printf("t================n"); for (n=0; n<=N; n++) { printf("t%3d t %6dn", n, val); val = 2*val; } return 0; } /* It prints out : n 2^n =============== 0 1 1 2 2 4 3 8
  • 5. 4 16 5 32 6 64 7 128 8 256 9 512 10 1024 11 2048 12 4096 13 8196 14 16384 15 32768 16 65536 */ (College of Science and Technology, n.d.) Describe the behavior when you compile the program, with no options. What is the command that you would use to compile the code and create the executable "power2"? Finally, compare and contrast the usage of a compiled and interpreted program.