9fans archive / 2001 / 11 / 716 /    prev next

From: Matt <matt@pro...>
Subject: Re: [9fans] Python filesystem
Date: Wed, 28 Nov 2001 18:34:59 +0000

On Wednesday 28 November 2001 18:21, you wrote:
> > python is not just a script interpreter but it is also a kind of shell
> > fire it up without a script and you can execute commands 'interactively'
> > which means it's quite a candidate for a file system
>
> you lost me here.  rc is not a file system.
>

maybe the shell word was a bad choice

run the pyfs

%echo 'print "hello"' > /n/pyfs/stdin
%cat /n/pyfs/stdout
hello
%

once could also have

%ls n/pyfs/locals
and get a list of local variables and their values (possibly writeable)

the real reason I'm thinking about it is to use it as CGI along the lines of 
mod_perl or mod_snake where the environment is persistent across HTTP requests
but I didn't really want to introduce HTTP into the conversation just yet :)