From: Moroo Jun <moroo@nifty.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] webfs from Python
Date: Tue, 18 Feb 2003 00:08:48 +0900 [thread overview]
Message-ID: <B793A977-4289-11D7-AD0E-0050E4504768@nifty.com> (raw)
In-Reply-To: <4b948f68f42f405da66ebecd9116d2b2@plan9.bell-labs.com>
On 2003.02.17, at 06:20, Russ Cox wrote:
> perhaps you have to ctlfd.flush()
Thank you for advice.
This script get web page fine. webfs looks nice.
import os
web = open("/mnt/web/clone","rw")
t=web.readlines()
id=int(t[0])
base=os.path.join("/mnt/web/%d" % id)
ctlfd=open(os.path.join(base,"ctl"),"w")
ctlfd.write("url http://www.moroo.com/index.html")
ctlfd.flush()
bodyfd=open(os.path.join(base,"body"),"r")
t=bodyfd.read(),
print t
web.close()
next prev parent reply other threads:[~2003-02-17 15:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-16 14:29 Moroo Jun
2003-02-16 21:20 ` Russ Cox
2003-02-17 15:08 ` Moroo Jun [this message]
2003-02-16 21:24 Moroo Jun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B793A977-4289-11D7-AD0E-0050E4504768@nifty.com \
--to=moroo@nifty.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).