From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 6 Aug 2009 08:28:39 -0700 Message-ID: Subject: Re: [9fans] searchfs From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 3a37c234-ead5-11e9-9d60-3106f5b1d025 > you need to read and write the same file descriptor. =C2=A0(i'm > not sure why i would use this instead of grep, even for http > queries.) =C2=A0<>[fd] is rc syntax for opening a file for r/w. > here's an example of opening fd 3 rw, then sending the > query into that fd and reading the results back: for interactive playing, it is easier to use % aux/rdwr /n/search/search > search=3Deat& ... though maybe the trailing newline would cause trouble. see /sys/src/cmd/ip/httpd/netlib_find.c for a real client. russ