Kai Großjohann | 2 Jun 2002 10:40
Picon
Picon

Re: kermit and tramp?

Horsley Tom <Tom.Horsley <at> ccur.com> writes:

>> Does one send a kermit command to the remote end, then send an escape
>> char to Kermit, then tell the Kermit to send (receive) the file?  Hm.
>> Maybe the current file transfer mechanism needs a little bit of
>> tweaking to allow this.
>
> I haven't thought about it much, but I sort of envision defining
> "sessions" as kermit scripts. The local emacs would run kermit
> on the local system as a subprocess, feeding it the session script
> argument. The session script would do all the connecting, logging
> in, starting remote kermit, etc with the kermit scripting
> capabilities. It could start the remote kermit in server mode and
> the local kermit script could then use the kermit INPUT command
> to read commands from tramp and act on them.

Hm?  This sounds as if you need to implement in Kermit lots of things
that Tramp already does reasonably well.  I'm not sure that this is
the right solution.

Tramp executes a lot of different shell commands during normal
activity.  Even if you don't use filename completion.

So the only thing I really need is:

(1) How do I get a shell prompt from Kermit?
    This goes into a special connection function.  Look at
    tramp-open-connection-rsh and tramp-open-connection-telnet for
    some examples.
    Probably it is enough to start Kermit, then send "telnet
(Continue reading)

Kai Großjohann | 2 Jun 2002 10:45
Picon
Picon

Re: : tramp doesn't like cygwin-mount (was Re: tramp ($Id: tramp.el,v 2.97 2002/04/14 15:52:38 kaig Exp $); tramp doesn't like cygwin-mount )

<lists <at> hermans.net> writes:

> So it looks like "tramp-handle-file-exists-p" calls
> "tramp-handle-expand-file-name" with the tramp file name, say
> "/[user <at> host]file".
>
> This translates the filename portion into the Cygwin base,
> i.e. "c:/cygwin/home/user/file".

I think it shouldn't do that, as the host is running Unix, not Cygwin,
right?  So why does tramp-handle-expand-file-name change file into
c:/cygwin/home/user/file?

Ah.  tramp-handle-expand-file-name runs the real expand-file-name
operation.  I guess that this does the wrong thing.  Is this correct?

Maybe tramp-handle-expand-file-name should do all the hard work
itself, rather than relying on the regular function.  In fact, it
seems that by reusing existing filename operations, I get into
trouble.  So I think that in the long run I will need to just
reimplement all the functions myself.  It's a pity, though.

kai
--

-- 
Silence is foo!

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
(Continue reading)

Horsley Tom | 3 Jun 2002 14:30

RE: kermit and tramp?

> Hm?  This sounds as if you need to implement in Kermit lots of things
> that Tramp already does reasonably well.  I'm not sure that this is
> the right solution.

Maybe not, but kermit also already does these thing very well.
Folks have been scripting terminal sessions with kermit for
years, so it has lots of features to simplify the job.

> Tramp executes a lot of different shell commands during normal
> activity.  Even if you don't use filename completion.
> 
> So the only thing I really need is:
> 
> (1) How do I get a shell prompt from Kermit?
>     This goes into a special connection function.  Look at
>     tramp-open-connection-rsh and tramp-open-connection-telnet for
>     some examples.
>     Probably it is enough to start Kermit, then send "telnet
>     otherhost" to it and then do like tramp-open-connection-telnet
>     does.  I don't know how to open other kinds of connection from
>     Kermit.

That's pretty much the way it works, there are just other commands
for opening other kinds of connections (rlogin, ssh, etc).

> (2) How do I transfer a file with Kermit, once I have that remote
>     shell prompt?
>     This would have to go in tramp-handle-write-region (for sending
>     the file) and tramp-handle-insert-file-contents (for receiving
>     it).
(Continue reading)

Andre Srinivasan | 3 Jun 2002 18:53

tramp ($Id: tramp.el,v 1.8 2002/04/15 11:27:18 kaig Exp $); tramp-methods defcustom mismatch


--bug report follows this line--

I noticed that when trying to customize tramp-methods, there appeared
to be a mistmatch between the variable and the type.  After bit of
playing, I found that tramp-su-program element was the culprit, but I
can't figure out why.

My other problem is under Cygwin, while I can get dired to work if I
choose the scpx method, trying to load a file hangs.  I'm wondering if
the tramp isn't detecting that the scp operation has completed.  

Thanks.

                                                        -andre.

Emacs  : XEmacs 21.4 (patch 8) "Honest Recruiter (Windows)" [Lucid] (i686-pc-cygwin, Mule) of Wed May 22
2002 on ANDRE
Package: tramp ($Id: tramp.el,v 1.8 2002/04/15 11:27:18 kaig Exp $)

current state:
==============
(setq
 tramp-ls-command nil
 tramp-test-groks-nt nil
 tramp-file-exists-command nil
 tramp-current-multi-method nil
 tramp-current-method nil
 tramp-current-user nil
 tramp-current-host nil
(Continue reading)

Kai Großjohann | 4 Jun 2002 14:23
Picon
Picon

Re: kermit and tramp?

Horsley Tom <Tom.Horsley <at> ccur.com> writes:

>> Hm?  This sounds as if you need to implement in Kermit lots of things
>> that Tramp already does reasonably well.  I'm not sure that this is
>> the right solution.
>
> Maybe not, but kermit also already does these thing very well.
> Folks have been scripting terminal sessions with kermit for
> years, so it has lots of features to simplify the job.

This sounds as if it might be useful to write another package which
does it this way.  I think most of the Tramp code isn't useful in that
case.

For reusing a lot of Tramp code, the other mechanism seems right,
where Kermit opens a shell prompt at the remote end and then calls
Kermit on the remote side as appropriate.

Are you willing to work on this?

>> Tramp executes a lot of different shell commands during normal
>> activity.  Even if you don't use filename completion.
>> 
>> So the only thing I really need is:
>> 
>> (1) How do I get a shell prompt from Kermit?
>>     This goes into a special connection function.  Look at
>>     tramp-open-connection-rsh and tramp-open-connection-telnet for
>>     some examples.
>>     Probably it is enough to start Kermit, then send "telnet
(Continue reading)

Kai Großjohann | 4 Jun 2002 14:34
Picon
Picon

Re: tramp ($Id: tramp.el,v 1.8 2002/04/15 11:27:18 kaig Exp $); tramp-methods defcustom mismatch

Andre Srinivasan <andre <at> slamdunknetworks.com> writes:

> I noticed that when trying to customize tramp-methods, there appeared
> to be a mistmatch between the variable and the type.  After bit of
> playing, I found that tramp-su-program element was the culprit, but I
> can't figure out why.

Does the following patch fix it?

--- tramp.el.~2.101.~	Wed May 22 11:23:36 2002
+++ tramp.el	Tue Jun  4 14:32:18 2002
 <at>  <at>  -704,19 +704,29  <at>  <at> 
   :type '(repeat
           (cons string
                 (set (list (const tramp-connection-function) function)
-                     (list (const tramp-rsh-program) string)
-                     (list (const tramp-rcp-program) string)
-                     (list (const tramp-remote-sh) string)
+                     (list (const tramp-rsh-program)
+			   (choice (const nil) string))
+                     (list (const tramp-rcp-program)
+			   (choice (const nil) string))
+                     (list (const tramp-remote-sh)
+			   (choice (const nil) string))
                      (list (const tramp-rsh-args) (repeat string))
                      (list (const tramp-rcp-args) (repeat string))
-                     (list (const tramp-rcp-keep-date-arg) string)
-                     (list (const tramp-su-program) string)
+                     (list (const tramp-rcp-keep-date-arg)
+			   (choice (const nil) string))
(Continue reading)

Kai Großjohann | 4 Jun 2002 14:49
Picon
Picon

Tramp: import existing SourceForge CVS tree

Tramp now lives on SourceForge and I would like to migrate it to
Savannah.  Can you import the CVS repository from SourceForge?

I think it makes more sense for you to just use the most current
repository version from SourceForge, rather than setting up an
appointment with me.  Just tell me from when was the tarball.

The SourceForge tarball is available under the following URL:

http://cvs.sourceforge.net/cvstarballs/tramp-cvsroot.tar.gz

Thanks,
kai
--

-- 
Silence is foo!

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Kai Großjohann | 4 Jun 2002 14:53
Picon
Picon

Re: tramp ($Id: tramp.el,v 1.8 2002/04/15 11:27:18 kaig Exp $); tramp-methods defcustom mismatch

Kai.Grossjohann <at> cs.uni-dortmund.de (Kai Großjohann) writes:

> Does the following patch fix it?

I have now also committed it to CVS.  So you can also use the most
recent version from there.

kai
--

-- 
Silence is foo!

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Kai Großjohann | 4 Jun 2002 14:54
Picon
Picon

Re: Tramp: import existing SourceForge CVS tree

Kai.Grossjohann <at> cs.uni-dortmund.de (Kai Großjohann) writes:

> Tramp now lives on SourceForge and I would like to migrate it to
> Savannah.  Can you import the CVS repository from SourceForge?

Note that the tarball available from SourceForge contains the CVSROOT
directory; is this a problem?

kai
--

-- 
Silence is foo!

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Kai Großjohann | 4 Jun 2002 15:00
Picon
Picon

Re: tramp ($Id: tramp.el,v 2.95 2002/04/10 17:16:25 kaig Exp $); cyclic symbolic links are not detected

Frederik Fouvry <fouvry <at> CoLi.Uni-SB.DE> writes:

> A cyclic symbolic link (or more specifically in the case I ran
> into, a link pointing to itself) is not detected as such and is
> followed forever.

Hm.  There is code in Tramp to detect this:

    (when (>= numchase numchase-limit)
      (error "Maximum number (%d) of symlinks exceeded" numchase-limit))

Do you have these lines in tramp-handle-file-truename?  Maybe
numchase-limit is too high (it's 100)?

kai
--

-- 
Silence is foo!

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

Gmane