Such a library (telnet client) is very useful to write scripts. I am
considering to port some simple and useful libraries in Python to
common lisp. But I am a common lisp newbie and still not capable of
doing that now :(
On Nov 7, 2:54 pm, Brian Jiang <········@gmail.com> wrote:
> Such a library (telnet client) is very useful to write scripts. I am
> considering to port some simple and useful libraries in Python to
> common lisp. But I am a common lisp newbie and still not capable of
> doing that now :(
Not one I know of. But you can try and see what you can do on top of
drakma [http://weitz.de/drakma].
Regards.
From: Zach Beane
Subject: Re: Is there any library in common lisp that similar the "telnetlib" in Python.
Date:
Message-ID: <m3hcjykpto.fsf@unnamed.xach.com>
Volkan YAZICI <·············@gmail.com> writes:
> On Nov 7, 2:54 pm, Brian Jiang <········@gmail.com> wrote:
>> Such a library (telnet client) is very useful to write scripts. I am
>> considering to port some simple and useful libraries in Python to
>> common lisp. But I am a common lisp newbie and still not capable of
>> doing that now :(
>
> Not one I know of. But you can try and see what you can do on top of
> drakma [http://weitz.de/drakma].
What parts of drakma can be re-used for implementing a telnet client?
Zach
On Nov 7, 6:01 pm, Zach Beane <····@xach.com> wrote:
> What parts of drakma can be re-used for implementing a telnet client?
AFAIR, it serves as a good example about how to open TCP connections.
Instead of getting lost in CLHS, one can have a rough idea about the
subject. BTW, I don't think implementing a telnet client would need a
that significant work.
Regards.
From: Zach Beane
Subject: Re: Is there any library in common lisp that similar the "telnetlib" in Python.
Date:
Message-ID: <m3d4ulljza.fsf@unnamed.xach.com>
Volkan YAZICI <·············@gmail.com> writes:
> On Nov 7, 6:01 pm, Zach Beane <····@xach.com> wrote:
>> What parts of drakma can be re-used for implementing a telnet client?
>
> AFAIR, it serves as a good example about how to open TCP connections.
> Instead of getting lost in CLHS, one can have a rough idea about the
> subject. BTW, I don't think implementing a telnet client would need a
> that significant work.
http://groups.google.com/group/comp.lang.lisp/msg/0fa162eaa85efb14
is my favorite article on the topic. It's not straightforward.
Zach
On Nov 8, 1:22 am, Zach Beane <····@xach.com> wrote:
> > AFAIR, it serves as a good example about how to open TCP connections.
> > Instead of getting lost in CLHS, one can have a rough idea about the
> > subject. BTW, I don't think implementing a telnet client would need a
> > that significant work.
>
> http://groups.google.com/group/comp.lang.lisp/msg/0fa162eaa85efb14
> is my favorite article on the topic. It's not straightforward.
I dunno about the details. Here is the whole Python telnetlib:
http://svn.python.org/view/python/trunk/Lib/telnetlib.py?rev=54608&view=markup
Regards.
On Nov 9, 2:37 am, Volkan YAZICI <·············@gmail.com> wrote:
> On Nov 8, 1:22 am, Zach Beane <····@xach.com> wrote:
>
> > > AFAIR, it serves as a good example about how to open TCP connections.
> > > Instead of getting lost in CLHS, one can have a rough idea about the
> > > subject. BTW, I don't think implementing a telnet client would need a
> > > that significant work.
>
> >http://groups.google.com/group/comp.lang.lisp/msg/0fa162eaa85efb14
> > is my favorite article on the topic. It's not straightforward.
>
> I dunno about the details. Here is the whole Python telnetlib:http://svn.python.org/view/python/trunk/Lib/telnetlib.py?rev=54608&vi...
>
> Regards.
Python's telnetlib is quite simple (for all the telnet options, it
just responses "IAC DONT opt" or "IAC WONT opt") and it is enough to
write scripts (e.g., telnet server and check something). I am
translating it from python to common lisp :) The preliminary draft
codes work well.
From: Damien Kick
Subject: Re: Is there any library in common lisp that similar the "telnetlib" in Python.
Date:
Message-ID: <13jd8ec5gtmuk8f@corp.supernews.com>
Brian Jiang wrote:
> Python's telnetlib is quite simple (for all the telnet options, it
> just responses "IAC DONT opt" or "IAC WONT opt") and it is enough to
> write scripts (e.g., telnet server and check something). I am
> translating it from python to common lisp :) The preliminary draft
> codes work well.
<sigh> If only I would read the entire thread before posting. Okay, so
now I'm curious. I showed you mine. Now you show me yours.
On Nov 11, 11:35 am, Brian Jiang <········@gmail.com> wrote:
> Mine is rather simple and it is almost the translation from Python's
> Telnetlib. I am a common lisp newbie and the codes are not
> professional.
Fine with me. Why not release it as an ASDF-Install'able package with
a cool page on CLiki?
Regards.
On Nov 15, 5:02 am, Volkan YAZICI <·············@gmail.com> wrote:
> On Nov 11, 11:35 am, Brian Jiang <········@gmail.com> wrote:
>
> > Mine is rather simple and it is almost the translation from Python's
> > Telnetlib. I am a common lisp newbie and the codes are not
> > professional.
>
> Fine with me. Why not release it as an ASDF-Install'able package with
> a cool page on CLiki?
>
> Regards.
I plan to do that. I just need some spare time now to learn necessary
stuffs of ASDF and ASDF-Install :-|
Hi all,
I have ported the telnetlib from python to common lisp. It is quite
useable now and I have written several scripts using it.
I have put it to the google code and created a cliki for it:
http://www.cliki.net/telnetlib
See the link for the details. I hope it is useful for you too.
Regards,
Brian
From: Maciej Katafiasz
Subject: Re: Is there any library in common lisp that similar the "telnetlib" in Python.
Date:
Message-ID: <fgtb0b$un6$1@news.net.uni-c.dk>
Den Wed, 07 Nov 2007 12:28:09 -0800 skrev Volkan YAZICI:
> On Nov 7, 6:01 pm, Zach Beane <····@xach.com> wrote: BTW, I don't think
> implementing a telnet client would need a that significant work.
TELNET might seem simple, but it's not a simple protocol. The sheer number
of extensions available makes it hard.
Cheers,
Maciej
From: Damien Kick
Subject: Re: Is there any library in common lisp that similar the "telnetlib" in Python.
Date:
Message-ID: <13jd843q5h07q15@corp.supernews.com>
Brian Jiang wrote:
> Such a library (telnet client) is very useful to write scripts. I am
> considering to port some simple and useful libraries in Python to
> common lisp. But I am a common lisp newbie and still not capable of
> doing that now :(
<sigh> I know I'm going to regret this in the morning, but...
I wrote a weak little approximation of some sort of a telnet client
<http://homepage.mac.com/dkick1/telnet-stream-2007-05-15.tgz>. However
anemic it may be, though, it did work well enough for me to write some
lisp code to automate telnetting to a box and issuing some commands
on the remote host. I have mostly used it with Allegro, but I did play
with it and Clisp a bit, if I recall correctly. Hopefully, someone will
look at it and be disgusted enough to knock out a version which does The
Right Thing but it might serve as a starting point for you, Brian.