User Tools

Site Tools


opus:fall2012:kpryslop:part3

Part 3

Entries

Entry 1: November 7, 2012

This is confusing first I get

lab46:~$ ./setup.exe
I see you've made it this far. The end is in sight.
cat: ./setup.exe: No such file or directory
When you figure it out, you want field: 2

Then I get

lab46:~$ ./setup.exe
Not ready yet.

Entry 2: November 14, 2012

lab46:~$ cat datafile | cut -d~ -f2 | sed 's/@/\n/g' | sort -h -r | less

Entry 3: November 16, 2012

Learned how to do xeyes but with different images. xloadimage.

Entry 4: November 30, 2012

Last day of November. EoCE today.

Keywords

unix Keyword 3

dd

Definition

Convert and copy a file.

References

unixhelp.ed.ac.uk/CGI/man-cgi?dd

unix Keyword 3 Phase 2

Comm

Definition

“comm” is a UNIX command which can be used to compare two sorted files. The input for comm is two files, and the output is two separate columns. The command syntax for comm is

comm [OPTION]... FILE1 FILE2

comm has three main options, -1, -2, and -3.

The -1 option will print the lines present in FILE1 in the left hand column, and all common lines in the right hand column, whereas the -2 option will do the opposite (print lines present in FILE2 on the left, and common lines on the right). The -3 option, however, will only print lines unique to both files, with FILE1's unique lines being on the left, and FILE2's unique lines on the right.

References

  • man comm!
lab46:~/src/unix$ comm -3 blah test 
#script 3
comm: file 1 is not in sorted order
#
	echo -n "enter a number: "
	read number
comm: file 2 is not in sorted order
	echo -n "How many times: "
	read times  
	for((i=$number; i<$times; i**)); do
	    let x=i*i
	    echo "[$i] $x"
	done
value=`$RANDOM`
echo $value
echo -n "Guess a value: "
read num
if [ $num -eq $value ]; then
	echo "You are correct"
elif [ $num -gt $value ]; then
	echo "Too high"
else
	echo "Too low"
fi

Experiment 3

Question

Can you throw xeyes/xlogo/xloadimage on to a computer without someone logged in.

Resources

Matt

Hypothesis

I believe you can.

Experiment

Try to send xeyes or whatever to a computer not in use.

Data

grrasp:~$ xeyes -display flake02:5 &
[1] 20395
grrasp:~$ xeyes -display flake02:5 &
[2] 20396
grrasp:~$ xeyes -display flake02:5 &
[3] 20397
grrasp:~$ xeyes -display flake02:5 &
[4] 20398
grrasp:~$ xeyes -display flake02:5 &
[5] 20399
grrasp:~$ xeyes -display flake02:5 &
[6] 20400
grrasp:~$ xeyes -display flake02:5 &
[7] 20401
grrasp:~$ xeyes -display flake02:5 &
[8] 20402
grrasp:~$ xeyes -display flake02:5 &
[9] 20403
grrasp:~$ xeyes -display flake02:5 &
[10] 20404
grrasp:~$ xeyes -display flake02:5 &
[11] 20406
grrasp:~$ xeyes -display flake02:5 &
[12] 20407
grrasp:~$ 

Did this while someone was not logged in at 15:32 November 30th 2012.

Analysis

I was correct in my idea that xeyes/whatever would work.

Conclusions

This could be fun as a jock to play on people.

opus/fall2012/kpryslop/part3.txt · Last modified: 2012/11/30 20:36 by kpryslop