Lisp HUG Maillist Archive

Connect to a LispWorks instance?

Hi! I'm using LispWorks 5.1 Professional under FreeBSD and
I'm wordering if it's possible to have a setup that's similar to
Swank and SLIME wherein I'd run a Lisp instance at system
startup (via script), and then I'd connect to that process using
LispWorks so I can interact with the running code (e.g. web
server).

I'm looking for something that is similar to SLIME's
M-x slime-connect functionality? Does such thing exist in
LispWorks?

Thanks. :-)

-- 
Rommel M. Martinez <ebzzry@gmail.com>


Re: Connect to a LispWorks instance?

Hi, Rommel Martinez

Try this:

(COMM:START-UP-SERVER :SERVICE 10000) ;; change 10000 to any other  
port you like

You'll got a REPL thread listen on this port, you can use telnet to  
connect to this port. Remember type a STRING first to set up a name:

binghe@binghe-mac:~$ telnet debian.local 10000
Trying 172.16.114.128...
Connected to debian.local.
Escape character is '^]'.
"My Remote Client"

CL-USER 1 > (lisp-implementation-version)

"5.1.0"

CL-USER 2 > mp:*current-process*

#<MP:PROCESS Name "My Remote Client" Priority 3 State "Running">

CL-USER 3 >

Since no access control implemented, you'd better use a firewall to  
protect this port.

Regards,

Chun Tian (binghe)

>
> Hi! I'm using LispWorks 5.1 Professional under FreeBSD and
> I'm wordering if it's possible to have a setup that's similar to
> Swank and SLIME wherein I'd run a Lisp instance at system
> startup (via script), and then I'd connect to that process using
> LispWorks so I can interact with the running code (e.g. web
> server).
>
> I'm looking for something that is similar to SLIME's
> M-x slime-connect functionality? Does such thing exist in
> LispWorks?
>
> Thanks. :-)
>
> -- 
> Rommel M. Martinez <ebzzry@gmail.com>
>


Re: Connect to a LispWorks instance?

On Mon, Apr 21, 2008 at 5:20 PM, Chun Tian (binghe)
<binghe.lisp@gmail.com> wrote:
> Hi, Rommel Martinez
>
>  Try this:
>
>  (COMM:START-UP-SERVER :SERVICE 10000) ;; change 10000 to any other port you
> like
>
>  You'll got a REPL thread listen on this port, you can use telnet to connect
> to this port. Remember type a STRING first to set up a name:
>
>  binghe@binghe-mac:~$ telnet debian.local 10000
>  Trying 172.16.114.128...
>  Connected to debian.local.
>  Escape character is '^]'.
>  "My Remote Client"
>
>  CL-USER 1 > (lisp-implementation-version)
>
>  "5.1.0"
>
>  CL-USER 2 > mp:*current-process*
>
>  #<MP:PROCESS Name "My Remote Client" Priority 3 State "Running">
>
>  CL-USER 3 >
>
>  Since no access control implemented, you'd better use a firewall to protect
> this port.
>
>  Regards,
>
>  Chun Tian (binghe)
>
>
>
>
> >
> > Hi! I'm using LispWorks 5.1 Professional under FreeBSD and
> > I'm wordering if it's possible to have a setup that's similar to
> > Swank and SLIME wherein I'd run a Lisp instance at system
> > startup (via script), and then I'd connect to that process using
> > LispWorks so I can interact with the running code (e.g. web
> > server).
> >
> > I'm looking for something that is similar to SLIME's
> > M-x slime-connect functionality? Does such thing exist in
> > LispWorks?
> >
> > Thanks. :-)
> >
> > --
> > Rommel M. Martinez <ebzzry@gmail.com>
> >
> >
>
>

Thanks a lot. I'll try that.

-- 
Rommel M. Martinez <ebzzry@gmail.com>


Updated at: 2020-12-10 08:43 UTC