[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something a
From: |
Fabrice |
Subject: |
Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt" |
Date: |
Fri, 19 Nov 2010 15:16:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt) |
Hi Michael,
Michael Albinus wrote:
> It means that your bash does not work with Tramp. [...] speaking about PS1
> setting.
>
>> Though, I could have found the culprit: me (?). I set `PS1' is set in my
>> `.bashrc'. Hence, it overrides the `PS1' you set just before calling
>> `\bash'[1].
>>
>> But, does that mean I can't set my `PS1' in my `.bashrc'? Should I do it
>> soemwhere else?
>
> Tramp sets the $TERM environment variable. So you could something like
>
> [ $TERM = "dumb" ] && PS1='$ '
FMI, is the TERM more or less free to choose? I mean: could Tramp set it to
something else, to a value only reserved for Tramp itself. It's simply that
"dumb" is used in other contexts, such as `M-x shell' under Cygwin Emacs or
`M-x eshell' under EmacsW32.
Would we wanna nicer PS1 prompts in these environments, is it possible?
Please note this is really a detail. If Tramp works, that's all what counts!
>> OK, now it almost perfectly works: I can access a lot of remote files, but
>> not
>> all. For example, when entering in the `server' directory, I get:
>>
>> byte-code: `((test -e /cygdrive/d/PFlowAcc/server || test -h
>> /cygdrive/d/PFlowAcc/server) && \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0
>> %s.0
>> "%A" t %i.0 -1)' /cygdrive/d/PFlowAcc/server || echo nil)' does not return a
>> valid Lisp expression: `(("`/cygdrive/d/PFlowAcc/server'") 1 4294967295
>> 4294967295 1289987025.0 1289948620.0 1289948620.0 159744.0 "drwxrwxrwx" t
>> 121034239985590299.0 -1) '
>
> Hmm, it returns strange uid and gid (4294967295). You 'll see it when
> calling on the remote host
>
> \stat -c ' %u %g' /cygdrive/d/PFlowAcc/server
>
> What do you see when calling this:
>
> ls -dn /cygdrive/d/PFlowAcc/server
--8<---------------cut here---------------start------------->8---
address@hidden ~
$ \stat -c ' %u %g' /cygdrive/d/PFlowAcc/server
4294967295 4294967295
address@hidden ~
$ ls -dn /cygdrive/d/PFlowAcc/server
drwxrwxrwx+ 1 4294967295 4294967295 159744 2010-11-19 00:03
/cygdrive/d/PFlowAcc/server
--8<---------------cut here---------------end--------------->8---
>> Though, it looks weird in the `dired' buffer:
>>
>> /plink:address@hidden:/cygdrive/d/PFlowAcc:
>> total 172
>> drwxrwxrwx 1 Administrators None 8192 2010-11-15 17:13 ./
>> drwxrwxrwx 1 Administrators root 4096 2010-11-05 15:18 ../
>> drwxrwxrwx 1 Administrators ???????? 0 2008-12-10 17:40
>> 2008-12-10/
>> drwxrwxrwx 1 ???????? ???????? 0 2007-08-16 13:36 Aspadmin/
>> drwxrwxrwx 1 ???????? ???????? 159744 2010-11-17 00:03 server/
>> drwxr-xr-x 1 fni mkgroup_l_d 4096 2010-11-15 17:13
>> sharedfiles/
>>
>> Do you have any idea why this is failing?
>
> That's because of not knowing uid/gid correctly.
What would be a possible solution or workaround in this case?
Best regards,
Fabrice
- tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt", Fabrice Niessen, 2010/11/05
- Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt", Michael Albinus, 2010/11/05
- Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt", Fabrice Niessen, 2010/11/08
- Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt", Fabrice Niessen, 2010/11/15
- Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt", Michael Albinus, 2010/11/15
- Re: **: Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt", Fabrice, 2010/11/17
- Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt", Michael Albinus, 2010/11/17
- Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt",
Fabrice <=
- Re: **: Re: tramp (2.1.17-pre); Nothing happens, waiting for something after "found remote shell prompt", Michael Albinus, 2010/11/20