Question I

profileahmad959

  

Question I 

This question carries 40% of the marks for this assignment.

You are asked to develop a bash shell script program that collects information about the computer that is executing it and further executes some tasks (it is up to you, what the tasks should perform). We are expecting that the shell script program makes use of the following bash command categories:

[ 6 marks each]

1. Read at least two arguments from the command line

2. Process management (examples: ps, jobs and top) { I would search for specific process and try to kill it}

3. System information (examples: date, time) { I would use the time to keep track of the execution time of each task}

4. Network (examples: ssh, sftp and scp) { I would here try to connect to remote services such as ssh, ftp and http}

5. Programming (examples: java, javac, python, perl,){ I would here write script command to compile and run a JAVA or python program}

6. File permissions (examples: chmod, chown)  { I would try to change the file permission for specific files}

What I suggest is to create a folder a put there all necessary files (for instance a java source file, python and/or any other file} and execute my script within this folder.

You are also asked to relate the shell command you use to the Linux operating system call, you have also to specify whether the shell command is an exactable or an internal shell command. [ 4 marks]

    • 6 years ago
    • 20
    Answer(2)

    Purchase the answer to view it

    blurred-text
    • attachment
      C574420.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      shell_script.zip