test_ncbi_socket.sh
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:1k
- #! /bin/sh
- # $Id: test_ncbi_socket.sh,v 1000.0 2003/10/29 17:06:58 gouriano Exp $
- exit_code=0
- port="555`expr $$ % 100`"
- test_ncbi_socket $port >/dev/null 2>&1 &
- server_pid=$!
- trap 'kill -9 $server_pid' 1 2 15
- sleep 1
- test_ncbi_socket localhost $port || exit_code=1
- kill $server_pid || exit_code=2
- ( kill -9 $server_pid ) >/dev/null 2>&1
- exit $exit_code
- #
- # ===========================================================================
- # PRODUCTION $Log: test_ncbi_socket.sh,v $
- # PRODUCTION Revision 1000.0 2003/10/29 17:06:58 gouriano
- # PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R6.8
- # PRODUCTION
- # ===========================================================================
- #