scsh-users
[Top] [All Lists]

Re: Opening packages using scheme

To: Gautham Anil <gautham_anil@cse.iitb.ac.in>
Subject: Re: Opening packages using scheme
From: Andreas Bernauer <andreas.bernauer@gmx.de>
Date: Thu, 5 Jan 2006 18:15:31 +0100
Cc: scsh-users@scsh.net
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jqJVDHjQ9imw8zc3F7mTJhSwoDil8q6RQCrDHfZxwJg9AAOsnuOGPHRbqyrzsDf5SXox1qF60EMeuhCPNiz1FYxWK9M/hPe1ij3XEHgoiupwQ77/cDLNf42IOToiXJ05Woo6ZTpM6wIh3+TcYxwK2L1xGxzgv8Fh4NweNRYrxT0=
List-id: <scsh-users.list-id.scsh.net>
Reply-to: andreas.bernauer@gmx.de
Sender: bernauer@gmail.com
On 1/5/06, Gautham Anil <gautham_anil@cse.iitb.ac.in> wrote:
> I need to find out how I can open packages opened using ,open such as
> ,open sockets etc. in the program itself.
>
> So a program could be something like
>
> (begin
>    (run-shell (,open sockets))
>    (run-shell (,open locks))
>    (run-shell (,open threads))
>    ....
> )

The easy way is to provide the package name on the command line:

scsh -o sockets -o locks -o threads
see also
http://www.scsh.net/docu/html/man-Z-H-12.html#node_sec_11.1.5

Another way is to use the package MODULE-SYSTEM in the s48 section of
sunterlib (http://savannah.nongnu.org/projects/sunterlib/). There is a
README file that contains a short docu.

The SUnet project uses this package in its SUrflet server.
http://sf.net/projects/sunet, see there the function
GET-SURFLET-RT-STRUCTURE in scheme/httpd/surflets/surflet-handler.scm

Yours,

Andreas.

<Prev in Thread] Current Thread [Next in Thread>