2 # Yes, that's POSIX sh, not bash!
6 # Create a one-meg device
7 dd if=/dev/zero of=$tmpnam bs=1024 count=1024
9 ./nbd-server -C /dev/null -p `pwd`/nbd-server.pid 11111 $tmpnam &
10 # -p only works if nbd-server wasn't compiled with -DNOFORK or -DNODAEMON,
11 # which I sometimes do for testing and debugging.
14 ./nbd-tester-client localhost 11111
16 if [ -f nbd-server.pid ]
18 kill `cat nbd-server.pid`