Changeset c12a5c8 for skype/t/livetest-bitlbee.sh
- Timestamp:
- 2011-01-04T01:00:00Z (14 years ago)
- Branches:
- master
- Children:
- ab094d9
- Parents:
- 6f5ab2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/t/livetest-bitlbee.sh
r6f5ab2a rc12a5c8 1 1 #!/usr/bin/env bash 2 3 start_skyped() 4 { 5 python ../skyped.py "$@" > skypedtest.pid 6 while true 7 do 8 [ -e skypedtest.pid ] || break 9 pid=$(sed 's/.*: //' skypedtest.pid) 10 if [ -e /proc/$pid ]; then 11 sleep 5 12 else 13 start_skyped "$@" 14 break 15 fi 16 done 17 } 18 2 19 BITLBEE=$1 3 20 typeset -ix PORT=`echo $2 | egrep '^[0-9]{1,5}$'` … … 46 63 47 64 # Run skyped 48 python ../skyped.py -c skyped.conf -l skypedtest.log > skypedtest.pid65 start_skyped -c skyped.conf -l skypedtest.log & 49 66 sleep 2 50 67 fi … … 68 85 # Kill skyped 69 86 killall -TERM skype 70 kill -TERM $(sed 's/.*: //' skypedtest.pid) 87 if [ -f skypedtest.pid ]; then 88 pid=$(sed 's/.*: //' skypedtest.pid) 89 rm skypedtest.pid 90 [ -e /proc/$pid ] && kill -TERM $pid 91 fi 71 92 fi 72 93
Note: See TracChangeset
for help on using the changeset viewer.