Last Update: 2006/12/18
Bug fix and new features.
The source is in http://plan9.aichi-u.ac.jp/netlib/
This page describes only the new feature. Basic features are unchanged. Look Pegasus 2.2 documents for more detail.
Pegasus 2.3 internally executes (in rc notation)
bind -a $web /usr/web
Therefore, remove empty directory "/usr/web/doc"
$web/usersthen the file "users" is outside of document root, and therefore only accessible via CGI.
A environment variable "hpid" is introduced for this purpose.
The "pid" is that of Pegasus in service.
echo -n timeout 180 > /proc/$hpid/notewhich will reset CGI timeout to 180 seconds.
def settimeout(n): note="/proc/%d/note"%hpid f=open(note, "w") if f==None: print "unable to open %s"%note print "timeout is not set" return f.write("timeout %d"%n) f.close() e=os.environ hpid=0 if e.has_key("hpid"): hpid=int(e["hpid"]) if hpid: settimeout(180) # continues heavy loaded tasks
<pre>${ ls | hfmt -x '<a href="%U">%H</a>' 1 1}</pre>