Re: Connect to the ssh and execute any command

2013-09-12 Thread Michael Albinus
Andrey Tykhonov writes: [Cc to tramp-devel@gnu.org, because I want to help with Tramp config] > Hi all! Hi Andrey, > During last several days I was trying to implement quite simple script > which: > > 1. Creates new buffer with the shell (M-x shell) > 2. Executes there "ssh usern...@domain.com

Re: Connect to the ssh and execute any command

2013-09-16 Thread Andrey Tykhonov
On Fri, Sep 13, 2013 at 08:45:02AM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > [Cc to tramp-devel@gnu.org, because I want to help with Tramp config] > > > Hi all! > > Hi Andrey, > > > During last several days I was trying to implement quite simple script > > which: > > > > 1. C

Re: Connect to the ssh and execute any command

2013-09-16 Thread Michael Albinus
Andrey Tykhonov writes: Hi Andrey, >> Tramp does not use FUSE for ssh connections. Please show an example >> connection to the remote host, and how it fails. > Here I try to "ls -la" and get the following error: > > Couldn't find a POSIX `id' command Your remote host does not find a proper

Re: Connect to the ssh and execute any command

2013-09-17 Thread Andrey Tykhonov
On Tue, Sep 17, 2013 at 08:54:51AM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > Hi Andrey, Hi Michael! > > >> Tramp does not use FUSE for ssh connections. Please show an example > >> connection to the remote host, and how it fails. > > > Here I try to "ls -la" and get the follo

Re: Connect to the ssh and execute any command

2013-09-17 Thread Michael Albinus
Andrey Tykhonov writes: > Hi Michael! Hi Andrey, >> Your remote host does not find a proper "id" command. What happens, if >> you call the following commands in a shell on that remote host: >> >> # id -u > > id: Command not found. > >> # whereis id > > whereis: Command not found. > > I also di

Re: Connect to the ssh and execute any command

2013-09-18 Thread Michael Albinus
Andrey Tykhonov writes: > Hi Michael! Hi Andrey, > This is not surprise for me as such hosts are very custom. They are not > sterling FreeBSD. I'm not sure if I can install something there. But > even I can then I'll be needed to install these things again, again and > again, because such hosts

Re: Connect to the ssh and execute any command

2013-09-18 Thread yary
I'm not sure if perl is on Andrey's remote host, but I recall that other parts of Tramp uses it. So here are perl-based alternates to "id": # id -u: perl -le 'print$>' # id -un perl -le 'print scalar getpwuid($>)' # id -g perl -le 'print($)=~/(\d+)/)' # id -gn perl -le 'print scalar getgrgid($)

Re: Connect to the ssh and execute any command

2013-09-18 Thread Michael Albinus
yary writes: > I'm not sure if perl is on Andrey's remote host, but I recall that > other parts of Tramp uses it. So here are perl-based alternates to > "id": > > # id -u > perl -le 'print$>' > > # id -un > perl -le 'print scalar getpwuid($>)' > > # id -g > perl -le 'print($)=~/(\d+)/)' > > # id

Re: Connect to the ssh and execute any command

2013-09-18 Thread Andrey Tykhonov
On Wed, Sep 18, 2013 at 12:09:55PM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > > Hi Michael! > > Hi Andrey, > > > This is not surprise for me as such hosts are very custom. They are not > > sterling FreeBSD. I'm not sure if I can install something there. But > > even I can then

Re: Connect to the ssh and execute any command

2013-09-18 Thread Andrey Tykhonov
On Wed, Sep 18, 2013 at 03:04:10PM +0200, Michael Albinus wrote: > yary writes: > > > I'm not sure if perl is on Andrey's remote host, but I recall that > > other parts of Tramp uses it. So here are perl-based alternates to > > "id": > > > > # id -u > > perl -le 'print$>' > > > > # id -un > > per

Re: Connect to the ssh and execute any command

2013-09-18 Thread Michael Albinus
Andrey Tykhonov writes: > I haven't perl, but there is python. > > So, python-based alternates to "id" could looks like: Well, looks also good. I will add both alternatives (perl-based and python-based) to Tramp. When finished, I'll ask you for test :-) > Best regards, Andrey. Best regards, Mi

Re: Connect to the ssh and execute any command

2013-09-18 Thread Andrey Tykhonov
On Wed, Sep 18, 2013 at 04:24:21PM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > > I haven't perl, but there is python. > > > > So, python-based alternates to "id" could looks like: > > Well, looks also good. I will add both alternatives (perl-based and > python-based) to Tramp. Wh

Re: Connect to the ssh and execute any command

2013-09-19 Thread Michael Albinus
Andrey Tykhonov 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

Re: Connect to the ssh and execute any command

2013-10-04 Thread Andrey Tykhonov
On Thu, Sep 19, 2013 at 12:40:23PM +0200, Michael Albinus wrote: > Andrey Tykhonov 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! >

Re: Connect to the ssh and execute any command

2013-10-04 Thread Michael Albinus
Andrey Tykhonov writes: > Hi Michael! Hi Andrey, > 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

Re: Connect to the ssh and execute any command

2013-10-06 Thread Andrey Tykhonov
On Fri, Oct 04, 2013 at 08:31:56PM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > Hi Andrey, > Hi Michael, > >> I hope you did also "autoconf; ./configure". > > > > No. I just tried it and got errors: > > > > $ autoconf; ./configure > > configure: WARNING: texi2dvi not found > >

Re: Connect to the ssh and execute any command

2013-10-06 Thread Michael Albinus
Andrey Tykhonov writes: > Hi Michael, Hi Andrey, > "Makefile", line 50: Missing dependency operator > "Makefile", line 52: Need an operator > "Makefile", line 55: Missing dependency operator > "Makefile", line 57: Need an operator > "Makefile", line 60: Missing dependency operator > "Makefile",

Re: Connect to the ssh and execute any command

2013-10-06 Thread Andrey Tykhonov
On Sun, Oct 06, 2013 at 08:24:22PM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > > Hi Michael, > > Hi Andrey, Hi Michael, > > > "Makefile", line 50: Missing dependency operator > > "Makefile", line 52: Need an operator > > "Makefile", line 55: Missing dependency operator > > "Ma

Re: Connect to the ssh and execute any command

2013-10-06 Thread Michael Albinus
Andrey Tykhonov writes: > Hi Michael, Hi Andrey, >> Please send me lisp/Makefile. > > Attached to this mail. Hmm. Still doesn't tell me what's up. Everything looks fine. OK, let it be for the time being. We could recheck later. >> Yep. And you haven't sent the traces level 6. If you would se

Re: Connect to the ssh and execute any command

2013-10-07 Thread Andrey Tykhonov
On Mon, Oct 07, 2013 at 08:46:52AM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > > Hi Michael, > > Hi Andrey, Hi Michael, > > >> Please send me lisp/Makefile. > > > > Attached to this mail. > > Hmm. Still doesn't tell me what's up. Everything looks fine. > > OK, let it be for

Re: Connect to the ssh and execute any command

2013-10-07 Thread Michael Albinus
Andrey Tykhonov writes: > Hi Michael, Hi Andrey, > So I attached full outputs of "*debug tramp/...*" to this mail. I don't see it. > Best regards, > Andrey Best regards, Michael. ___ Tramp-devel mailing list Tramp-devel@gnu.org https://lists.gnu.o

Re: Connect to the ssh and execute any command

2013-10-07 Thread Andrey Tykhonov
On Mon, Oct 07, 2013 at 11:29:19AM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > > Hi Michael, > > Hi Andrey, > > > So I attached full outputs of "*debug tramp/...*" to this mail. > > I don't see it. Hi Michael, I'm sorry. Now attached. Best regards, Andrey. > > > Best rega

Re: Connect to the ssh and execute any command

2013-10-07 Thread Michael Albinus
Andrey Tykhonov writes: > Hi Michael, > > I'm sorry. Now attached. Well, the traces don't show any hint. However, you've said you have applied in eshell cd /ssh:username@hostname:/data/bin/ ls -la IIRC, "ls" in eshell is an internal command. Could you, please, apply instead: cd /ssh:username

Re: Connect to the ssh and execute any command

2013-10-07 Thread Andrey Tykhonov
On Mon, Oct 07, 2013 at 03:40:21PM +0200, Michael Albinus wrote: > Andrey Tykhonov writes: > > > Hi Michael, > > > > I'm sorry. Now attached. > > Well, the traces don't show any hint. However, you've said you have > applied in eshell > > cd /ssh:username@hostname:/data/bin/ > ls -la > > IIRC,

Re: Connect to the ssh and execute any command

2013-10-07 Thread Michael Albinus
Andrey Tykhonov writes: > No issues with the "*ls -la". eshell outputs list with files as was > expected. So it works for you now? No further problems? > Best regards, > Andrey. Best regards, Michael. ___ Tramp-devel mailing list Tramp-devel@gnu.org