HW 2 Hints
- For Problem 5(server.c), /usr/bin/finger does not exist on the SSLAB machines; you can safely replace it with any other command(e.g., ls, ifconfig).
- For Problem 1(5.2), below is an example gnuplot script for drawing the diagram. You can you any other tool you are familiar with though. Please specify what each pulse represents(e.g., 'idle', 'start' ,'0', '1').
set key right top
set ylabel 'Voltage (V)'
set xtics ("Idle" 0.5, "start" 1.5, "0" 2.5)
set xrange [0:20]
set yrange [-20:20]
set output "diagram.eps"
set terminal postscript landscape lw 1
set arrow from 0,-15 to 1,-15 nohead
set arrow from 1,-15 to 1,15 nohead
set arrow from 1,15 to 2,15 nohead
set arrow from 2,15 to 2,-15 nohead
set arrow from 2,-15 to 3,-15 nohead
set arrow from 3,-15 to 3,0 nohead
plot 0 lt 2 notitle