5 .
/beanstalkd
-p $PORT >/dev
/null
2>/dev
/null
&
9 if ! ps
$bg >/dev
/null
; then
10 echo "Could not start beanstalkd for testing, port $PORT is taken"
20 fgrep
-v "#" $1 | nc
-q 1 $SERVER $PORT > .tmp_test
22 # diff is "false" if they match
23 if diff $2 .tmp_test
; then
24 clean_exit
$bg 0 2>/dev
/null
27 clean_exit
$bg 1 2>/dev
/null