هذا السؤال ممكن حدا يساعدني فيه - TopicsExpress



          

هذا السؤال ممكن حدا يساعدني فيه ضروري جدا جدا ................................................................. Part I − To Develop a Multi-Objective Bash Script For this part, you will be writing custom front-ends Linux commands for parsing command line arguments with getopt. You need to create a shell script to manage a “task-planner” list. This list contains tasks you need to accomplish soon. Using your script users must be able to: view the current list of tasks, add a new item to the list, and remove an item from the list. Additionally you should provide a help option to provide instructions on how to use your script. Your list contains tasks that you will be read automatically from a file with a time stamp. Each line in the file represents a task (utility name) that must be performed, and necessary arguments given as simple pathnames, in addition to the time that it will be executed (use reasonable times for testing purposes). Sample tasks that can be used: Searching a folder for change (you know the content of a folder and you are trying to find what was added or removed). It will write the result on a text file in the same directory being searched. Copying the contents of one folder to another (backup) Emptying a folder (cleaning a temp folder) You can create sample folders for the sake of testing your script. The file should contain a list of tasks in addition to allowing the user to enter their task in the same format on the screen, or requesting the removal of a certain task. At all times, deal with an array for operations, and store on a file when exiting. You must assign a certain ID for each task for the sake of accessing these tasks in your “task-planner” list. You should provide a menu driven user interface too. When invoked with no command line arguments, your script should provide this interactive mode. a- The user can have the choice to enter the task-planner list management that provides (but not limited to) the following options: -l to display the items in the list. Each item should be numbered. -a STRING to add STRING as a new item to the end of the list. -r ID to remove task number ID from the list. CIS 345: Operating Systems Configuration & Use Final Project Fall 2014 Help option Use getopt (the Gnu tool) instead of getopts to have more control over error messages and also to provide for long versions of options. (e.g., For a help option you might provide both -h and --help.) Guideline Please review the Temporary file tutorial, getopt, and other resources from our class web page. You need to have functions to accomplish all the tasks in your code You need to implement a log file that emulates the history as we will discuss in class. This saves your commands, input, and output, allows you to modify the command when you retrieve it and gives you the option to run it.
Posted on: Fri, 21 Nov 2014 18:22:41 +0000

Trending Topics



Recently Viewed Topics




© 2015