From: Moroo Jun <moroo@nifty.com>
To: 9fans@cse.psu.edu
Subject: [9fans] webfs from Python
Date: Sun, 16 Feb 2003 23:29:49 +0900 [thread overview]
Message-ID: <1B0BBF95-41BB-11D7-B61E-0050E4504768@nifty.com> (raw)
I tried to use webfs from Python. I wrote a little test script and try
to get web page, but fail.
Any suggestions?
cpu% cat web.py
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"),"rw")
ctlfd.write("url http://www.example.com/index.html")
bodyfd=open(os.path.join(base,"body"),"r")
t=bodyfd.read(),
print t
web.close()
cpu% python web.py
Traceback (most recent call last):
File w.py:9, in ?
bodyfd=open(os.path.join(base,"body"),"r")
IOError: [Errno 0] url is not yet set: '/mnt/web/0/body'
next reply other threads:[~2003-02-16 14:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-16 14:29 Moroo Jun [this message]
2003-02-16 21:20 ` Russ Cox
2003-02-17 15:08 ` Moroo Jun
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=1B0BBF95-41BB-11D7-B61E-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).