unix scripting using gnome
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:
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:
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.
|
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:
Include a discussion about what regular expressions are and how Perl efficiently includes regular expression processing in the language. Be sure to state examples.
|
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:
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:
(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. |