#!/bin/sh # # $Header: /CVSROOT/socklinger/example/tester.sh,v 1.3 2007-04-04 05:29:11 tino Exp $ # # Just a harmless testing script. Run this like # ./socklinger -n-2 -d10 :3333 example/tester.sh # # $Log: tester.sh,v $ # Revision 1.3 2007-04-04 05:29:11 tino # Updated example # # Revision 1.2 2005/10/30 03:24:22 tino # additional possibilities # # Revision 1.1 2004/08/16 01:30:01 Administrator # initial add printf '[%d][%05d] connect from %s via %s\n' "$SOCKLINGER_NR" "$$" "$SOCKLINGER_PEER" "$SOCKLINGER_SOCK" >&2 echo "$$: This is a harmless testing script!" echo "$$: SOCKLINGER_NR=$SOCKLINGER_NR SOCKLINGER_PEER=$SOCKLINGER_PEER SOCKLINGER_SOCK=$SOCKLINGER_SOCK" echo -n "$$: " for a in 9 8 7 6 5 4 3 2 1 0 do echo -n "$a " sleep 1 done echo "bye bye"