Commit 8cd27863 authored by UTSAV ANAND's avatar UTSAV ANAND

Lab3

parent 094e26dc
Group No. 30 - "Prayas"
(Neeraj Dhake, 150050022) (Utsav Anand, 150050044) (Mukesh Pareek, 150050049)
Honor Code:
We pledge on our honor that we have not given or received any unauthorized assistance on this assignment.
Citations:
linux.die.net
https://major.io/2010/03/18/sigterm-vs-sigkill/ //to understand how to initiate SIGKILL
Percentage contribution:
Neeraj 100%
Utsav 100%
Mukesh 100%
Task A:
Task B:
required file name: meminfo
grep 'Mem' meminfo | tr ' ' '\0' | cut -f2 -d":"
Task C:
ssh pareek@mars.cse.iitb.ac.in
Task D:
chmod +x infiniteLoop.sh //to get the permissions
./infiniteLoop.sh& // to run the infinite loop in background; & is used at end to run the process in background
pkill infiniteLoop.sh // to kill the background process
[EXTRA CREDIT]
chmod +x cell.sh //to get the permissions
./cell.sh& // to run the cell.sh
open a new terminal to stop the process. Type in the following command:
pkill -9 cell.sh
-9 tells pkill that you want to use SIGKILL to stop the process
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment