Skip to content

Commit

Permalink
use gnu netcat
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Jun 9, 2012
1 parent 3050843 commit 7a09f0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cgid
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ echo "cgid running on port $PORT"
while [ -f tmp/running ]; do
rm -f tmp/connection
mkfifo tmp/connection
bin/request-handler < tmp/connection | netcat -l -p $PORT > tmp/connection
bin/request-handler < tmp/connection | ./nc -l -p $PORT > tmp/connection
done
12 changes: 11 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@ LP_DIR=`cd $(dirname $0); cd ..; pwd`

mkdir -p $BUILD_DIR/tmp
mkdir -p $BUILD_DIR/bin
cp -r $LP_DIR/bin $BUILD_DIR
cp -r $LP_DIR/bin $BUILD_DIR

echo "-----> Downloading GNU netcat..."
curl -L -o nc.tgz http://garr.dl.sourceforge.net/sourceforge/netcat/netcat-0.7.1.tar.gz
echo "-----> Compiling GNU netcat..."
tar zfx nc.tgz
cd netcat-0.7.1/
./configure
make
cp src/netcat $LP_DIR/bin/nc
echo " $($LP_DIR/bin/nc -h | head -n1)"

0 comments on commit 7a09f0a

Please sign in to comment.