scsh-users
[Top] [All Lists]

expect-like hacking in scsh

To: scsh@martigny.ai.mit.edu
Subject: expect-like hacking in scsh
From: shivers@ai.mit.edu (Olin Shivers)
Date: 15 Jan 1996 16:13:27 -0500
Organization: Artificial Intelligence Lab, MIT
Reply-to: shivers@ai.mit.edu
   From: smd@chops.icp.net (Sean Doran)
   Anyway, for me, there's lots that has been of enormous use
   in scsh already, particularly for building a smart send-expect
   engine around the amazingly simple

           (call-with-values
            (lambda ()
              (fork-pty-session (lambda ()
                                  (apply exec-path
                                         `("telnet"
                                           ,address
                                           ,port)))))
            list))

   for which I am eternally thankful.   (Although
   I'd really like to see bdc's telnet/ftp/etc. code,
   and the telnet stuff in particular, as dragging
   *lots* of information thorugh a pty really sucks).

That lambda could be written a little more simply:
        (lambda () (exec-epf telnet ,address ,port))
        (lambda () (exec-path "telnet" address port))

        -Olin

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