Hello community,
here is the log from the commit of package netcat for openSUSE:Factory
checked in at Thu Jul 22 00:18:38 CEST 2010.
--------
New Changes file:
--- /dev/null 2010-05-08 11:31:08.000000000 +0200
+++ /mounts/work_src_done/STABLE/netcat/netcat.changes 2006-05-24 20:01:05.000000000 +0200
@@ -0,0 +1,79 @@
+-------------------------------------------------------------------
+Wed May 24 20:00:58 CEST 2006 - schwab@suse.de
+
+- Don't strip binaries.
+
+-------------------------------------------------------------------
+Wed Jan 25 21:38:38 CET 2006 - mls@suse.de
+
+- converted neededforbuild to BuildRequires
+
+-------------------------------------------------------------------
+Fri Sep 2 13:47:41 CEST 2005 - mmj@suse.de
+
+- Don't package manual executable [#114849]
+- Correct man-page
+
+-------------------------------------------------------------------
+Wed Jul 6 13:12:16 CEST 2005 - mmj@suse.de
+
+- Add missing decls
+
+-------------------------------------------------------------------
+Wed Mar 2 19:43:25 CET 2005 - mmj@suse.de
+
+- FreeBSD had a netcat manual page, so add it to our package
+
+-------------------------------------------------------------------
+Wed Apr 28 01:57:00 CEST 2004 - ro@suse.de
+
+- change return type of "helpme" to void
+
+-------------------------------------------------------------------
+Fri Jan 30 09:33:59 CET 2004 - max@suse.de
+
+- Building as a non-root user
+- Added support for partial shutdown if stdin gets closed (#34219)
+
+-------------------------------------------------------------------
+Tue Sep 16 10:30:53 CEST 2003 - max@suse.de
+
+- Use argv[0] instead of hardcoded program name. (#30939)
+
+-------------------------------------------------------------------
+Tue Jul 1 13:37:10 CEST 2003 - coolo@suse.de
+
+- don't use $RPM_PACKAGE_NAME in %setup
+
+-------------------------------------------------------------------
+Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
+
+- removed bogus self-provides
+
+-------------------------------------------------------------------
+Fri Jan 19 15:32:30 CET 2001 - schwab@suse.de
+
+- Include if HAVE_BIND.
+
+-------------------------------------------------------------------
+Thu Jan 18 10:55:21 CET 2001 - grimmer@suse.de
+
+- Changed Group tag to Networking/Utilities
+
+-------------------------------------------------------------------
+Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
+
+- ran old prepare_spec on spec file to switch to new prepare_spec.
+
+-------------------------------------------------------------------
+Thu Sep 17 19:07:50 MEST 1998 - max@suse.de
+
+- changed "nc" to "netcat" in the example scripts,
+ to make them work.
+
+-------------------------------------------------------------------
+Mon Mar 16 18:41:07 MET 1998 - max@suse.de
+
+- new package
+- allows "cat" via network as server or client with TCP or UDP
+
calling whatdependson for head-i586
New:
----
netcat-1.10.tar.gz
netcat.1
netcat.changes
netcat.patch
netcat.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ netcat.spec ++++++
#
# spec file for package netcat (Version 1.10)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: netcat
%define INSTALL install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
License: PERMISSIVE-OSI-COMPLIANT ; Public domain with credit restriction.
Group: Productivity/Networking/Other
AutoReqProv: on
Summary: A Simple But Powerful Network Tool
Version: 1.10
Release: 1007
Source: netcat-1.10.tar.gz
Source1: netcat.1
Patch0: netcat.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Netcat is a simple Unix utility that reads and writes data across
network connections using TCP or UDP protocols. It is designed to be a
reliable back-end tool that can be used directly or easily driven by
other programs and scripts. At the same time, it is a feature-rich
network debugging and exploration tool, because it can create almost
any kind of connection you may need and has several interesting
built-in capabilities.
Find the documentation in /usr/share/doc/packages/netcat/README.
Authors:
--------
hobbit@avian.org
%prep
%setup -q
%patch0
cp %SOURCE1 .
%build
make linux "CFLAGS=$RPM_OPT_FLAGS"
%install
%{INSTALL_DIR} $RPM_BUILD_ROOT/usr/bin
%{INSTALL_DIR} $RPM_BUILD_ROOT/%_mandir/man1
%{INSTALL} nc $RPM_BUILD_ROOT/usr/bin/netcat
%{INSTALL} -m 0644 netcat.1 $RPM_BUILD_ROOT/usr/share/man/man1
%clean
rm -fr $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/bin/netcat
%_mandir/man1/*
%doc Changelog
%doc README
%doc data
%doc scripts
%changelog
++++++ netcat.1 ++++++
.TH NETCAT 1
.SH NAME
netcat \- TCP/IP swiss army knife
.SH SYNOPSIS
.B netcat
.I "[-options] hostname port[s] [ports] ..."
.br
.B netcat
.I "-l -p port [-options] [hostname] [port]"
.SH "DESCRIPTION"
.B netcat
is a simple unix utility which reads and writes data across network
connections, using TCP or UDP protocol. It is designed to be a
reliable "back-end" tool that can be used directly or easily driven by
other programs and scripts. At the same time, it is a feature-rich
network debugging and exploration tool, since it can create almost any
kind of connection you would need and has several interesting built-in
capabilities. Netcat, or "netcat" as the actual program is named, should
have been supplied long ago as another one of those cryptic but
standard Unix tools.
.P
In the simplest usage, "netcat host port" creates a TCP connection to the
given port on the given target host. Your standard input is then sent
to the host, and anything that comes back across the connection is
sent to your standard output. This continues indefinitely, until the
network side of the connection shuts down. Note that this behavior is
different from most other applications which shut everything down and
exit after an end-of-file on the standard input.
.P
Netcat can also function as a server, by listening for inbound
connections on arbitrary ports and then doing the same reading and
writing. With minor limitations, netcat doesn't really care if it
runs in "client" or "server" mode -- it still shovels data back and
forth until there isn't any more left. In either mode, shutdown can be
forced after a configurable time of inactivity on the network side.
.P
And it can do this via UDP too, so netcat is possibly the "udp
telnet-like" application you always wanted for testing your UDP-mode
servers. UDP, as the "U" implies, gives less reliable data
transmission than TCP connections and some systems may have trouble
sending large amounts of data that way, but it's still a useful
capability to have.
.P
You may be asking "why not just use telnet to connect to arbitrary
ports?" Valid question, and here are some reasons. Telnet has the
"standard input EOF" problem, so one must introduce calculated delays
in driving scripts to allow network output to finish. This is the
main reason netcat stays running until the *network* side closes.
Telnet also will not transfer arbitrary binary data, because certain
characters are interpreted as telnet options and are thus removed from
the data stream. Telnet also emits some of its diagnostic messages to
standard output, where netcat keeps such things religiously separated
from its *output* and will never modify any of the real data in
transit unless you *really* want it to. And of course telnet is
incapable of listening for inbound connections, or using UDP instead.
Netcat doesn't have any of these limitations, is much smaller and
faster than telnet, and has many other advantages.
.SH OPTIONS
.TP 13
.I \-g gateway
source-routing hop point[s], up to 8
.TP 13
.I \-G num
source-routing pointer: 4, 8, 12, ...
.TP 13
.I \-h
display help
.TP 13
.I \-i secs
delay interval for lines sent, ports scanned
.TP 13
.I \-l
listen mode, for inbound connects
.TP 13
.I \-n
numeric-only IP addresses, no DNS
.TP 13
.I \-o file
hex dump of traffic
.TP 13
.I \-p port
local port number (port numbers can be individual or ranges: lo-hi
[inclusive])
.TP 13
.I \-r
randomize local and remote ports
.TP 13
.I \-s addr
local source address
.TP 13
.I \-t
enable telnet negotiation
.TP 13
.I \-u
UDP mode
.TP 13
.I \-v
verbose [use twice to be more verbose]
.TP 13
.I \-w secs
timeout for connects and final net reads
.TP 13
.I \-z
zero-I/O mode [used for scanning]
.SH COPYRIGHT
Netcat is entirely my own creation, although plenty of other code was
used as examples. It is freely given away to the Internet community
in the hope that it will be useful, with no restrictions except giving
credit where it is due. No GPLs, Berkeley copyrights or any of that
nonsense. The author assumes NO responsibility for how anyone uses
it. If netcat makes you rich somehow and you're feeling generous,
mail me a check. If you are affiliated in any way with Microsoft
Network, get a life. Always ski in control. Comments, questions, and
patches to hobbit@avian.org.
.SH BUGS
Efforts have been made to have netcat "do the right thing" in all its
various modes. If you believe that it is doing the wrong thing under
whatever circumstances, please notify me and tell me how you think it
should behave. If netcat is not able to do some task you think up,
minor tweaks to the code will probably fix that. It provides a basic
and easily-modified template for writing other network applications,
and I certainly encourage people to make custom mods and send in any
improvements they make to it. Continued feedback from the Internet
community is always welcome!
.P
Some port names in /etc/services contain hyphens -- netcat currently
will not correctly parse those, so specify ranges using numbers if you
can.
.SH "SEE ALSO"
/usr/share/doc/netcat/README
.SH AUTHOR
This manual page was written by Joey Hess and
Robert Woodcock , cribbing heavily from Netcat's
README file.
.P
Netcat was written by a guy we know as the Hobbit .
++++++ netcat.patch ++++++
--- Makefile
+++ Makefile
@@ -9,13 +9,14 @@
# pick gcc if you'd rather , and/or do -g instead of -O if debugging
# debugging
# DFLAGS = -DTEST -DDEBUG
-CFLAGS = -O
+DFLAGS = -DTELNET
+CFLAGS = -O2
XFLAGS = # xtra cflags, set by systype targets
XLIBS = # xtra libs if necessary?
# -Bstatic for sunos, -static for gcc, etc. You want this, trust me.
STATIC =
CC = cc $(CFLAGS)
-LD = $(CC) -s # linker; defaults to stripped executables
+LD = $(CC) # linker; defaults to stripped executables
o = o # object extension
ALL = nc
@@ -67,7 +68,8 @@
make -e $(ALL) $(MFLAGS) XFLAGS='-DAIX'
linux:
- make -e $(ALL) $(MFLAGS) XFLAGS='-DLINUX' STATIC=-static
+ make -e $(ALL) $(MFLAGS) XFLAGS='-DLINUX'
+#STATIC=-static
# irix 5.2, dunno 'bout earlier versions. If STATIC='-non_shared' doesn't
# work for you, null it out and yell at SGI for their STUPID default
--- netcat.c
+++ netcat.c
@@ -73,6 +73,10 @@
#include
#include
#include /* O_WRONLY et al */
+#include /* read, write, yadda yadda */
+#ifdef HAVE_BIND
+#include
+#endif
/* handy stuff: */
#define SA struct sockaddr /* socket overgeneralization braindeath */
@@ -1216,6 +1220,7 @@
if (rr <= 0) { /* at end, or fukt, or ... */
FD_CLR (0, ding1); /* disable and close stdin */
close (0);
+ shutdown(fd, 1); /* no more sending from us */
} else {
rzleft = rr;
zp = bigbuf_in;
@@ -1313,7 +1318,13 @@
USHORT hiport = 0;
USHORT curport = 0;
char * randports = NULL;
+ char * basename;
+ if ((basename = strrchr(argv[0], '/')) == NULL)
+ basename = argv[0];
+ else
+ basename++;
+
#ifdef HAVE_BIND
/* can *you* say "cc -yaddayadda netcat.c -lresolv -l44bsd" on SunLOSs? */
res_init();
@@ -1420,7 +1431,7 @@
case 'h':
errno = 0;
#ifdef HAVE_HELP
- helpme(); /* exits by itself */
+ helpme(basename); /* exits by itself */
#else
bail ("no help available, dork -- RTFS");
#endif
@@ -1471,7 +1482,7 @@
break;
default:
errno = 0;
- bail ("nc -h for help");
+ bail ("%s -h for help", basename);
} /* switch x */
} /* while getopt */
@@ -1627,13 +1638,13 @@
#ifdef HAVE_HELP /* unless we wanna be *really* cryptic */
/* helpme :
the obvious */
-helpme()
+void helpme(char * basename)
{
o_verbose = 1;
holler ("[v1.10]\n\
-connect to somewhere: nc [-options] hostname port[s] [ports] ... \n\
-listen for inbound: nc -l -p port [-options] [hostname] [port]\n\
-options:");
+connect to somewhere: %s [-options] hostname port[s] [ports] ... \n\
+listen for inbound: %s -l -p port [-options] [hostname] [port]\n\
+options:", basename, basename);
/* sigh, this necessarily gets messy. And the trailing \ characters may be
interpreted oddly by some compilers, generating or not generating extra
newlines as they bloody please. u-fix... */
--- scripts/alta
+++ scripts/alta
@@ -16,12 +16,12 @@
QB="GET /cgi-bin/query?pg=q&what=${WHAT}&fmt=c&q=\"${PLUSARG}\""
# ping 'em once, to get the routing warm
-nc -z -w 8 www.altavista.digital.com 24015 2> /dev/null
+netcat -z -w 8 www.altavista.digital.com 24015 2> /dev/null
echo "=== Altavista ==="
for xx in 0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 \
190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 ; do
- echo "${QB}&stq=${xx}" | nc -w 15 www.altavista.digital.com 80 | \
+ echo "${QB}&stq=${xx}" | netcat -w 15 www.altavista.digital.com 80 | \
egrep '^elite: ${SRC}" | ./nc -u -w 1 localhost 514 > /dev/null 2>&1
+echo "<36>elite: ${SRC}" | netcat -u -w 1 localhost 514 > /dev/null 2>&1
echo ";;; Hi, ${SRC}..."
echo ";;; This is a PRERELEASE version of 'netcat', tar/gzip/uuencoded."
echo ";;; Unless you are capturing this somehow, it won't do you much good."
@@ -17,7 +17,7 @@
sleep 8
cat dist.file
sleep 1
-./nc -v -l -p ${PORT} -e dist.sh < /dev/null >> dist.log 2>&1 &
+netcat -v -l -p ${PORT} -e dist.sh < /dev/null >> dist.log 2>&1 &
sleep 1
-echo "<36>elite: done" | ./nc -u -w 1 localhost 514 > /dev/null 2>&1
+echo "<36>elite: done" | netcat -u -w 1 localhost 514 > /dev/null 2>&1
exit 0
--- scripts/irc
+++ scripts/irc
@@ -1,6 +1,6 @@
#! /bin/sh
## Shit-simple script to supply the "privmsg <recipient>" of IRC typein, and
-## keep the connection alive. Pipe this thru "nc -v -w 5 irc-server port".
+## keep the connection alive. Pipe this thru "netcat -v -w 5 irc-server port".
## Note that this mechanism makes the script easy to debug without being live,
## since it just echoes everything bound for the server.
## if you want autologin-type stuff, construct some appropriate files and
--- scripts/iscan
+++ scripts/iscan
@@ -13,7 +13,7 @@
esac
# ping 'em once and see if they *are* running identd
-nc -z -w 9 "$1" 113 || { echo "oops, $1 isn't running identd" ; exit 0 ; }
+netcat -z -w 9 "$1" 113 || { echo "oops, $1 isn't running identd" ; exit 0 ; }
# generate a randomish base port
RP=`expr $$ % 999 + 31337`
@@ -22,10 +22,10 @@
shift
while test "$1" ; do
- nc -v -w 8 -p ${RP} "$TRG" ${1} < /dev/null > /dev/null &
+ netcat -v -w 8 -p ${RP} "$TRG" ${1} < /dev/null > /dev/null &
PROC=$!
sleep 3
- echo "${1},${RP}" | nc -w 4 -r "$TRG" 113 2>&1
+ echo "${1},${RP}" | netcat -w 4 -r "$TRG" 113 2>&1
sleep 2
# does this look like a lamer script or what...
kill -HUP $PROC
--- scripts/ncp
+++ scripts/ncp
@@ -20,9 +20,9 @@
if test "$2" ; then
test ! -f "$1" && echo "can't find $1" && exit 1
if test "$me" = "nzp" ; then
- compress -c < "$1" | nc -v -w 2 $2 $MYPORT && exit 0
+ compress -c < "$1" | netcat -v -w 2 $2 $MYPORT && exit 0
else
- nc -v -w 2 $2 $MYPORT < "$1" && exit 0
+ netcat -v -w 2 $2 $MYPORT < "$1" && exit 0
fi
echo "transfer FAILED!"
exit 1
@@ -36,9 +36,9 @@
fi
# 30 seconds oughta be pleeeeenty of time, but change if you want.
if test "$me" = "nzp" ; then
- nc -v -w 30 -p $MYPORT -l < /dev/null | uncompress -c > "$1" && exit 0
+ netcat -v -w 30 -p $MYPORT -l < /dev/null | uncompress -c > "$1" && exit 0
else
- nc -v -w 30 -p $MYPORT -l < /dev/null > "$1" && exit 0
+ netcat -v -w 30 -p $MYPORT -l < /dev/null > "$1" && exit 0
fi
echo "transfer FAILED!"
# clean up, since even if the transfer failed, $1 is already trashed
--- scripts/probe
+++ scripts/probe
@@ -10,7 +10,7 @@
GATE=192.157.69.11
# might conceivably wanna change this for different run styles
-UCMD='nc -v -w 8'
+UCMD='netcat -v -w 8'
test ! "$1" && echo Needs victim arg && exit 1
@@ -20,7 +20,7 @@
$UCMD -z -r -g $GATE "$1" 6473 2>&1
$UCMD -r -z "$1" 6000 4000-4004 111 53 2105 137-140 1-20 540-550 95 87 2>&1
# -s `hostname` may be wrong for some multihomed machines
-echo 'UDP echoecho!' | nc -u -p 7 -s `hostname` -w 3 "$1" 7 19 2>&1
+echo 'UDP echoecho!' | netcat -u -p 7 -s `hostname` -w 3 "$1" 7 19 2>&1
echo '113,10158' | $UCMD -p 10158 "$1" 113 2>&1
rservice bin bin | $UCMD -p 1019 "$1" shell 2>&1
echo QUIT | $UCMD -w 8 -r "$1" 25 158 159 119 110 109 1109 142-144 220 23 2>&1
@@ -36,14 +36,14 @@
echo 'BEGIN big udp -- everything may look "open" if packet-filtered'
data -g < ${DDIR}/nfs-0.d | $UCMD -i 1 -u "$1" 2049 | od -x 2>&1
# no wait-time, uses RTT hack
-nc -v -z -u -r "$1" 111 66-70 88 53 87 161-164 121-123 213 49 2>&1
-nc -v -z -u -r "$1" 137-140 694-712 747-770 175-180 2103 510-530 2>&1
+netcat -v -z -u -r "$1" 111 66-70 88 53 87 161-164 121-123 213 49 2>&1
+netcat -v -z -u -r "$1" 137-140 694-712 747-770 175-180 2103 510-530 2>&1
echo 'END big udp'
$UCMD -r -z "$1" 175-180 2000-2003 530-533 1524 1525 666 213 8000 6250 2>&1
# Use our identd-sniffer!
iscan "$1" 21 25 79 80 111 53 6667 6000 2049 119 2>&1
# this gets pretty intrusive, but what the fuck. Probe for portmap first
-if nc -w 5 -z -u "$1" 111 ; then
+if netcat -w 5 -z -u "$1" 111 ; then
showmount -e "$1" 2>&1
rpcinfo -p "$1" 2>&1
fi
--- scripts/web
+++ scripts/web
@@ -37,7 +37,7 @@
# PATH=${HOME}:${PATH} ; export PATH
test "${PAGER}" || PAGER=more
-BACKEND="nc -v -w 15"
+BACKEND="netcat -v -w 15"
TMPAGE=/tmp/web$$
host="$1"
port="80"
--- scripts/webproxy
+++ scripts/webproxy
@@ -51,7 +51,7 @@
# is necessary so this shell has NO remaining channel open to the net.
# This will hang around for 10 minutes, and exit if no new connections arrive.
# Using -n for speed, avoiding any DNS/port lookups.
- nc -w 600 -n -l -p $PORT -e "$0" $XNC "$CLIENT" < /dev/null > /dev/null \
+ netcat -w 600 -n -l -p $PORT -e "$0" $XNC "$CLIENT" < /dev/null > /dev/null \
2> $CFILE &
;;
esac
@@ -64,7 +64,7 @@
if test "$1" = "reset" ; then
rm -f $LFILE
test -f "$CFILE" && rm -f $CFILE
- nc -w 1 -n 127.0.0.1 $PORT < /dev/null > /dev/null 2>&1
+ netcat -w 1 -n 127.0.0.1 $PORT < /dev/null > /dev/null 2>&1
exit 0
fi
# find our ass with both hands
@@ -82,7 +82,7 @@
fi
# ping client machine and get its bare IP address
- CLIENT=`nc -z -v -w 8 "$1" 22000 2>&1 | sed 's/.*\[\(..*\)\].*/\1/'`
+ CLIENT=`netcat -z -v -w 8 "$1" 22000 2>&1 | sed 's/.*\[\(..*\)\].*/\1/'`
test ! "$CLIENT" && echo "Can't find address of $1" && exit 1
# if this was an initial launch, be informative about it
@@ -92,7 +92,7 @@
test -f "$CFILE" && echo " and connection fuckups to $CFILE"
# and run the first listener, showing us output just for the first hit
- nc -v -w 600 -n -l -p $PORT -e "$0" $XNC "$CLIENT" &
+ netcat -v -w 600 -n -l -p $PORT -e "$0" $XNC "$CLIENT" &
exit 0
fi
@@ -130,8 +130,8 @@
echo "access to Netscam's servers <b>DENIED.</b>" && exit 0
# Do it. 30 sec net-wait time oughta be *plenty*...
# Some braindead servers have forgotten how to handle the simple-query syntax.
-# If necessary, replace below with (echo "$x1 $hf" ; echo '') | nc...
-echo "$x1 $hf" | nc -w 30 "$hh" "$hp" 2> /dev/null || \
+# If necessary, replace below with (echo "$x1 $hf" ; echo '') | netcat...
+echo "$x1 $hf" | netcat -w 30 "$hh" "$hp" 2> /dev/null || \
echo "oops, can't get to $hh : $hp".
echo "sent \"$x1 $hf\" to $hh : $hp" >> $LFILE
exit 0
--- scripts/webrelay
+++ scripts/webrelay
@@ -10,7 +10,7 @@
# set these as you wish: proxy port...
PORT=8000
-# any extra args to the listening "nc", for instance "-s inside-net-addr"
+# any extra args to the listening "netcat", for instance "-s inside-net-addr"
XNC=''
# functionality switch, which has to be done fast to start the next listener
@@ -24,9 +24,9 @@
case "${1}" in
"")
# no args: fire off new relayer process NOW. Will hang around for 10 minutes
- nc -w 600 -l -n -p $PORT -e "$0" $XNC < /dev/null > /dev/null 2>&1 &
+ netcat -w 600 -l -n -p $PORT -e "$0" $XNC < /dev/null > /dev/null 2>&1 &
# and handle this request, which will simply fail if vars not set yet.
- exec nc -w 15 $RDEST $RPORT
+ exec netcat -w 15 $RDEST $RPORT
;;
esac
@@ -38,7 +38,7 @@
# Launch the first relayer same as above, but let its error msgs show up
# will hang around for a minute, and exit if no new connections arrive.
-nc -v -w 600 -l -p $PORT -e "$0" $XNC < /dev/null > /dev/null &
+netcat -v -w 600 -l -p $PORT -e "$0" $XNC < /dev/null > /dev/null &
echo \
"Relay to ${RDEST}:${RPORT} running -- point your browser here on port $PORT"
exit 0
--- scripts/websearch
+++ scripts/websearch
@@ -15,7 +15,7 @@
# Don't have "nc"? Get "netcat" from avian.org and add it to your toolkit.
doquery () {
- echo GET "$1" | nc -v -i 1 -w 30 "$2" "$3"
+ echo GET "$1" | netcat -v -i 1 -w 30 "$2" "$3"
}
# changed since original: now supplying port numbers and separator lines...
@@ -35,7 +35,7 @@
# you want to play, the basic idea and query formats follow.
# echo "GET /WW/IS/Titles?qt=${PLUSARG}" > $IFILE
# echo "" >> $IFILE
-# nc -v -w 30 guide-p.infoseek.com 80 < $IFILE
+# netcat -v -w 30 guide-p.infoseek.com 80 < $IFILE
# this is kinda flakey; might have to do twice??
echo '' ; echo "=== Opentext ==="
@@ -66,7 +66,7 @@
echo "Why: go ask todd@pointcom.com (Todd Whitney)" >> $IFILE
echo '' >> $IFILE
echo '' ; echo "=== Lycos ==="
-nc -v -i 1 -w 30 twelve.srv.lycos.com 80 < $IFILE
+netcat -v -i 1 -w 30 twelve.srv.lycos.com 80 < $IFILE
rm -f $IFILE
exit 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org