tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connect to the ssh and execute any command


From: Andrey Tykhonov
Subject: Re: Connect to the ssh and execute any command
Date: Fri, 4 Oct 2013 17:13:49 +0300
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Sep 19, 2013 at 12:40:23PM +0200, Michael Albinus wrote:
> Andrey Tykhonov <address@hidden> writes:
> 
> Hi Andrey,
> 
> >> Well, looks also good. I will add both alternatives (perl-based and
> >> python-based) to Tramp. When finished, I'll ask you for test :-)
> >
> > Looking forward for these changes!
> 
> I have committed a respective patch to Tramp's repository. I couldn't
> use Python's os.getlogin(), because Tramp has no terminal when connected
> to the remote host. So I have used pwd.getpwuid(os.getuid())[0]
> 
> Cloning of Tramp from the git repository is described in
> <http://www.gnu.org/software/tramp/#Obtaining-Tramp>. Your local manual
> might be out-of-date; likely it describes downloading via cvs, which is
> not supported anymore.

Hi Michael!

Thank you!

I just recently get a chance to test these changes.

I cloned git://git.savannah.gnu.org/tramp.git git repository to the 
~/.emacs.d/tramp/ and added 

(add-to-list 'load-path "~/.emacs.d/tramp/lisp/")

and 

(setq tramp-verbose 6)

on top of my .emacs.

I tried again:

cd /ssh:address@hidden:/var/log/

And then "ls -la". I'm not getting error as before but in each folder
where I made "ls -la" instead of file list I get "total 0":

/ssh:address@hidden:/var/log $ ls -la
total 0

But indeed there are files.

Then I tried:

C-x C-f

and I can change folders but when I open some file I get:

Tramp: Inserting
`/ssh:address@hidden:/some/path/some-file.py'...failed                          
                                                                   
File exists, but cannot be read


I suppose that that gonna be a hard task to make tramp workable in my
case. This seems require a lot of debugging and tracing all code and
check step by step where there are issues and then fix them.



Anyway, thank you very much Michael!



Best regards,
Andrey

> 
> > Thank you, Michael! :-)
> 
> Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]