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 parametersGenerate a menu to ask which task is needed to be performedCreate a UNIX groupDrop a UNIX groupCreate a userDrop a userNote that as part of the Create User section, a UNIX group many be identified that does not already exist, so that group will need tobe 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 nameList the running processes for that userConfirm with the system administrator before killing the processesKill the processes after confirmationIt is very important to note with this task that you should only kill processes for a user and his or her running processes; do notarbitrarily 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 thefollowing 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.




