Project_1

docx

School

Florida State College at Jacksonville *

*We aren’t endorsed by this school

Course

4640

Subject

Computer Science

Date

Oct 30, 2023

Type

docx

Pages

4

Uploaded by MateSeaLionMaster340

Report
COP 4640 Group 5 9/28/2023 Zachary Skelly(n01519743) Ha Le (n01536904) Cameron Miller (n01451067) Connor Warming (n01491851) Autumn Cuevas (n01497340) Ronaldo Walker (n01482957) Lab Project 1 ShellScript Task 1 Task one asks the user to display their system information such as the system's kernel, network node hostname, kernel release, kernel version, machine hardware, and processor architecture, using the command “uname” or “Unix name”. In the screenshot above: “uname -o” finds the operating system. “uname -s” finds the kernel name. “uname -r” finds the kernel release date. “uname -n” finds the network node hostname. “uname -v” finds the version of the kernel being used. “uname -a” gets all the data above and additional hardware information and concatenates it into a string.
Task 2 Task two’s goal was to get basic hardware information needed from our Linux command line. In this case, we use “uname” command as well to show our hardware in the computer. Unix name – processor (uname -p) is one of the examples shown above. The result of this command is i686 which is a Linux binary package installed on an intel processor. “uname -p” finds the processor architecture. “uname -I” displays the hardware platform. “uname -m” shows the machine hardware. Task 3
For task three we are creating a shell script with the goal of performing two tasks. The first task is to see the current users on the machine. The second task is to identify all running processes. First, we must create a shell script using the command “vi” which is the text editor, and add the name of our shell script file after, which in this case is “myscript.sh”. In the shell script we use the command “ #!/bin/sh” at the top to indicate which interpreter should execute our shell script, which in this case is Bourne shell. Then we type the command we want into the script. o “w” displays the users and their current actions on the machine. o “ps -aux” displays the current running processes. After creating the shell script, we now must make it executable in the Linux terminal by running the command “chmod +x myscript.sh”, as shown above. “chmod” is used to change the permissions of the file you are trying to execute while “+x” is used to specify what type of permissions you want to grant.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Task 4 In the fourth task we are creating a log file by editing the crontab to execute our shell script file for the designated time of every Monday at 10 pm. “crontab -e” is used to access the crontab file and edit it to our specific needs. “0 22 * * 1 /home/seed/myscript.sh > /home/seed/mylogfile.log” is the rule we add to designate the time we want our command to run. To take away this rule you can simply use “crontab -e” and delete the rule and save it or just type “crontab -r” which will also achieve the same outcome. Another thing to note is the file directory which you must correctly address to execute this rule properly. To find your directory you can use the “pwd” command which stands for Print working directory. The last step is to check and see if our command was executed properly. So, we must access our log file to see our commands that should’ve printed out into the log file. Using “vim mylogfile.log” we see the current users and running processes on the machine, which is exactly the data when executing our shell script from task 3.

Browse Popular Homework Q&A

Q: Find the volume of the solid that lies under the – x2 – y?, within the 1 and above the unit…
Q: You measure the diameter of a drop of water to be 3 mm. Make an order-of-magnitude estimate of how…
Q: The City Zoo has different admission prices for adults and children. When three adults and two…
Q: QUESTION 2a. How many unique arrangements can be made using the 8 letters that spell COURTESY ?…
Q: How many mL of .200 M FeCl3 are needed to react with an excess of Li2S to produce .345g of He2S3 if…
Q: The Neal Company wants to estimate next year's return on equity (ROE) under different financial…
Q: iques are used to enhance the quality of
Q: First Array In this lab you will be creating your first integer array, populate it and update each…
Q: A department store accepts only its own credit card. Among 56 randomly selected card holders, it was…
Q: StringBuilder In this lab, we learn how StringBuilder class works and why it is efficient. Type up…
Q: In the article, “Brexit, Trump, and ‘methodological whiteness’: on the misrecognition of race and…
Q: Are the theories of modern states or state formation put forward by Karl Marx/Frederick Engels,…
Q: Are you an impulse shopper? A survey of 800 grocery shoppers indicated that 18% of males and 50% of…
Q: The home range, in hectares, of a carnivorous mammal weighing w grams can be approximated by 1.36…
Q: Write a function sum(x,y) that returns a string indicating what the sum of x and y is. For example,…
Q: What are 3 differences between the microcredit approach (or Bangladesh Consensus) and the capability…
Q: a. Complete the ANOVA summary table. Degrees of Freedom Source Sum of Squares 1,038,711.30 Among…
Q: Prove the following statement directly from the definitions. The product of any two even integers is…
Q: Simple try-catch-finally Program This lab is a simple program that demonstrates how…
Q: Using the flow chart in Figure 6, identify Minerals A, B, C, D, E and F in Box 2. Record your…
Q: Problem 5. a. For f: R→R given by f(x)=x-1, what is im(f)?>** b. For f: [0, 2)→ R given by f(x) =…
Q: Find the mass of the right pyramid that has a square base in the xy-plane. − 1 ≤ x ≤ 1, − 1 ≤ y ≤ 1,…