You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/bin/sh
# $Id: testminissdpdnotif.sh,v 1.2 2016/01/19 10:26:08 nanard Exp $# (c) 2016 Thomas Bernard
OS=`uname -s`IF=loif [ "$OS" = "Darwin" ] ; then IF=lo0fi# if set, 1st argument is network interfaceif [ -n "$1" ] ; then IF=$1fi
# trap sigint in the script so CTRL-C interrupts the running program,# not the scripttrap 'echo SIGINT' INT
SOCKET=`mktemp -t minissdpdsocketXXXXXX`PID="${SOCKET}.pid"./minissdpd -s $SOCKET -p $PID -i $IF || exit 1sleep .5echo "minissdpd process id `cat $PID`"./showminissdpdnotif -s $SOCKETecho "showminissdpdnotif returned $?"kill `cat $PID`
|