Group 11 - !nfinity

(Kartik Singhal, 150050025) (Pranay Agrawal, 150050026) (Nilesh Gupta, 150050059)

Student 1: 100%
Student 2: 100%
Student 3: 100%

Student 1: I pledge on my honour that I have not given or received any unauthorized assistance on this assignment or any previous task.
Student 2: I pledge on my honour that I have not given or received any unauthorized assistance on this assignment or any previous task.
Student 3: I pledge that i will NOT use any source which is unauthorized, violate copyrights of the source and without giving proper credits to owner of the source for all my assignments.

Citations:
http://www.thegeekstuff.com/
askubuntu.com
http://www.cyberciti.biz/faq/bash-while-loop/
http://wiki.bash-hackers.org/scripting/terminalcodes

TaskA-
	printf- for subtask 5
	export -subtask 3
	alias for subtask 4
	bash uses regex search in readline library. The Readline library includes functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those lines, and perform history expansion on previous commands.

TaskB-
The executable file is task2.sh
We are using the following command-
grep 'Mem' /proc/meminfo | tr -d " " | cut -d':' -f2

TaskC-
For ssh to mars account-
	ssh kartiks@mars.cse.iitb.ac.in
for subtask 3
	ssh -p 22 -X kartiks@mars.cse.iitb.ac.in
	subl /tmp/lab3_inlab_C3.txt
for subtask 4
	press enter when asked for "file in which to save the key"
	press y if asked for overwrite
	press enter when asked for passphrase both time
	then enter your cse password and login by running the command : ssh <cse-username>@mars.cse.iitb.ac.in
TaskD-
Subtask 3
	For running a script file in background just run the file by using command : ./<script-file-name>.sh & e.g. ./infiniteLoop.sh &
	the & in last tells the shell to run the program in background. We figured it out by googling how to run a process in background and got answer at http://askubuntu.com/questions/562911/how-to-execute-a-task-in-background
Subtask 4
	for killing a background process command used is : pkill <process name> e.g. pkill infiniteLoop.sh
	We figured this by searching pkill on google.
Subtask 5
	for killing cell.sh command used is : pkill -9 cell.sh
	We figured this out firstly by searching what to do when ctrl+c don't work in ubuntu then we got the answer at http://superuser.com/questions/243460/what-to-do-when-ctrl-c-cant-kill-a-process then used pkill instead of kill to kill the process by its name.
	
