So I ditch the newline put on by echo:
% echo 'url http://slashdot.org/' | 9p write webfs/0/ctl
% 9p read webfs/0/ctl
0
acceptcookies on
sendcookies on
redirectlimit 10
useragent webfs/2.0 (plan 9)
%
No URL. Am I sending it wrong? Or do I have to find where the file
server is hooped?
Paul
It'd probably be a nice feature if webfs ignored slashdot.org. However
you probably must hold on to references to the webfs files.
"A connection is assumed closed once all files in its directory have been closed,
and is then will be reallocated."
Under Plan 9 , if you're seated in /mnt/web/, it'd be e.g.:
{ dir=`{read} ; echo -n 'url http://slashdot.org/' >$dir/ctl ; cat
$dir/body }<>clone
--
Nils O. Selåsdal <N...@Utel.no>
Paul
/sys/src/cmd/webfsget.c
Russ
webfs needs a little clean-up, it's still complaining:
9pserve: annouce unix!/tmp/ns.5r2H/web: Address already in use
o.webfs: post9pservice web: 9pserve failed
I'm sure it's something trivial I missed in the port.
Paul