UNIX systems programming Expert Level

Question 1:

The first script that needs to be written is automating the shutdown procedure. Write a script that will perform the following tasks:

Prompt the system administrator for all valid input parameters.
Ask if a wall needs to be sent, and if yes, send the message.
Ask if this is a shutdown or reboot, and process appropriately.

Question 2:

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.

Question 3:

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.

TAKE ADVANTAGE OF OUR PROMOTIONAL DISCOUNT DISPLAYED ON THE WEBSITE AND GET A DISCOUNT FOR YOUR PAPER NOW!