Re: Can't deal with files with U+1F308 RAINBOW in their name

2020-07-08 Thread yary
積丹尼 Dan Jacobson, since "adb shell ... doesn't seem to be capable to
handle multibyte characters above U+1" – can you open the adb
shell and see if "ls" mis-handles the rainbow char? If so then you
have a test case that you can file directly with the Android Debug
Bridge people- though I don't know who they are...

-y

-y


On Wed, Jul 8, 2020 at 8:48 AM Michael Albinus  wrote:
>
> 積丹尼 Dan Jacobson  writes:
>
> Hi Dan,
>
> > If I am in dired,
> >
> > /adb::/sdcard/GTs/gpx:
> >   total 7674
> >   drwxrwx--x  1 root sdcard_rw4096 2019-10-28  .
> >   drwxrwx--x  1 root sdcard_rw4096 2018-05-16  ..
> >   -rw-rw  1 root sdcard_rw   17132 2019-10-21  2019-10-14_05-52-10.gpx
> >   -rw-rw  1 root sdcard_rw8493 2019-11-02  2019-10-14_09-05-25.gpx
> >   -rw-rw  1 root sdcard_rw 7578327 2019-09-26  village_excel.xls
> >   -rw-rw  1 root sdcard_rw 488 2019-10-28  .gpx
> >
> > and I hit v (runs the command dired-view-file), on that final file, I get
> > dired-get-file-for-visit: File no longer exists; type ‘g’ to update Dired 
> > buffer
> >
> > OK, I have to first do
> > $ adb pull /sdcard/GTs/gpx/.gpx /tmp/
> > /sdcard/GTs/gpx/.gpx: 1 file pulled. 0.0 MB/s (488 bytes in 0.018s)
> >
> > and view it locally. (Can't copy from dired of course either.)
>
> I can confirm this. adb pull and adb push work as expected. But for
> other file operations, I need adb shell. And this doesn't seem to be
> capable to handle multibyte characters above U+1. Sorry for that.
>
> Best regards, Michael.
>



Re: No longer accessible host paths

2019-11-04 Thread yary
I often have similar scenario of editing via TRAMP and then switching
networks, without those issues. I don't use ido, and I do have auto-save to
local /tmp for all my tramp buffers, setting "Auto Save File Name
Transforms" regexp - see
https://www.gnu.org/software/emacs/manual/html_node/tramp/Auto_002dsave-and-Backup.html


Re: Set PS1 on login?

2018-06-11 Thread yary
Or better see
https://superuser.com/questions/163167/when-sshing-how-can-i-set-an-environment-variable-on-the-server-that-changes-f

...you can pass information in the TERM environment variable, which is
always copied (there may be a length limit however). You'll still have to
make sure that the remote shell doesn't restrict the TERM variable to
designate a known terminal type. Pass the -t option to ssh if you're not
starting a remote interactive shell.

env TERM="extra information:$TERM" ssh -t server.example.com
'MYVAR=${TERM%:*}; TERM=${TERM##*:}; export MYVAR; mycommand'




-y

On Mon, Jun 11, 2018 at 9:49 AM, yary  wrote:

> You may have an alternate way of setting PS1 at the client, though the
> server may be configured to ignore it. The ssh man page says this on my
> system:
>
> Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
> ``VARNAME=vale'' to the environment if the file exists and users are
> allowed to change their environment.  For more information, see the
> PermitUserEnvironment option in sshd_config(5).
>
>
> -y
>
> On Mon, Jun 11, 2018 at 9:29 AM, Michael Albinus 
> wrote:
>
>> John Collins  writes:
>>
>> > Hello,
>>
>> Hi John,
>>
>> > Happy (mostly) tramp user here that is also very new to it. As someone
>> > working with remote machines that I do not own or control, TRAMPs
>> > inability to handle fancy prompts is highly crippling. It's stated in
>> > the FAQ that "tramp needs a clean recognizable prompt on the remote
>> > host for accurate parsing". What I don't understand is why tramp can't
>> > set PS1 when logging in the typical way one does:
>> >
>> > ssh ... -t 'PS1='$'; bash -i'
>> >
>> > When I modify tramp-maybe-open-connection to do this it works just
>> > fine; I'm able to login to a remote that would hang with the message:
>> >
>> > Tramp: Waiting for prompts from remote shell...fail
>> >
>> > I figure there is a good reason this can't be done, but wanted to
>> > raise the issue just in case.
>>
>> ssh does not allow this kind of environment passing. Try in your local
>> shell
>>
>> --8<---cut here---start->8---
>> # ssh localhost "PS1='$ '; /bin/sh"
>> --8<---cut here---end--->8---
>>
>> or
>>
>> --8<---cut here---start->8---
>> # ssh localhost "/usr/bin/env PS1='$ ' /bin/sh"
>> --8<---cut here---end--->8---
>>
>> It doesn't work. Therefore, Tramp cannot use this mechanism.
>>
>> Instead, Tramp recommends to adapt the remote prompt by something like
>> this in the remote ~/.profile:
>>
>> --8<---cut here---start->8---
>> [ $TERM = "dumb" ] PS1='$ '
>> --8<---cut here---end--->8---
>>
>> > Regards,
>> >
>> > John C.
>>
>> Best regards, Michael.
>>
>> ___
>> Tramp-devel mailing list
>> Tramp-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/tramp-devel
>>
>
>
___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


Clicking on any Emacs menu calls Tramp, pauses(hangs)

2017-07-14 Thread yary
This is probably due to some library using Tramp, and not Tramp's
responsibility, but the error makes this the most convenient place to
start looking...

GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version
10.9.5 (Build 13F1911))
 of 2017-04-21

Clicking on any menu, eg File or Edit or Buffers or Tools, does not
open the menu, but instead shows "Tramp: Waiting for prompts from
remote shell..."

Especially annoying with this, is that ^g doesn't exit the hang. It
does stop the little spinner after the message from spinning, but it
doesn't let me resume editing.

I haven't used Tramp this session, though I did in a previous one, and
have recent files, session variables reloaded through various emacs
customizations and libraries (not sure which anymore!)

I ran tramp-cleanup-all-connections and set debug-level to 6, but I am
NOT including the debug traces here because it does not show anything
about the call stack. For this issue, I'm not interested in Tramp's
behavior/timeout- I want to find out what is trying to check a remote
file, and fix that. What's a good way to debug that? Can I have Tramp
show the stack trace when it's being called?

Setting debug-on-quit and hitting ^g opens the debugger, but
*Backtrace* shows only "Debugger entered--Lisp error: (quit)" - no
frames, no backtrace. Perhaps due to the delayed nature of ^g "quit"
with this.

Quitting emacs, running it as emacs -Q, and removing this entry from
~/.emacs.d/.session "session-file-alist" fixes my immediate problem-

("/sudo:root@localhost:/private/etc/apache2/httpd.conf" 9311 8236 1
nil nil 8236 (overwrite-mode))
("/sudo:root@localhost:/private/etc/apache2/other/mySite.conf" 505 555
1 nil nil 505 (overwrite-mode))

How can I make sure that tramp entries like the above in
"session-file-alist" don't cause problems- or where's a better place
to ask?

Thanks, in advance!

-y

___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


Re: [Feature Request] Using Tramp to transparently edit files in zip/tarball/cpio/hddimage etc.

2016-10-03 Thread yary
There is archive-mode for editing inside archives

https://www.emacswiki.org/emacs/ArchiveMode

It supports editing inside zip, and zip supports encryption, so what
you want may already work!

-y

___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


Re: Password issue using sudo through ssh

2015-08-31 Thread yary
On Mon, Aug 31, 2015 at 9:08 AM, Brice Waegenire 
wrote:

> I enter it but then I get stuck to
> `Found remote shell prompt on foo'.
>

I sometimes also get stuck with that message, and I don't use sudo, I see
it with the plink and pscp methods. I never went to any length to diagnose
it, since I can hit ctrl-G and then tramp-cleanup-all-connections to get
back to a known good state. (It seems to happen after I lose the internet
connection, and reconnect- but not always.) Just thought it might be
helpful to have another data point.

-y
___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


Re: tramp (2.2.12); Retrieve of links attributes with stat fail when link contains two slashes.

2015-08-20 Thread yary
The nul character (ascii 0) is invalid in file/paths for most filesystems
and can be safely used as a separator, if elisp strings and sed can handle
them then that's the answer.

-y

On Thu, Aug 20, 2015 at 4:38 AM, Michael Albinus michael.albi...@gmx.de
wrote:

 pierre.techouey...@gfi.fr (Pierre Téchoueyres) writes:

Hello everybody,

 Hi Pierre,

  After digging into the traces (thanks to `tramp-verbose'), I've found
  `tramp-do-file-attributes-with-stat' and
  `tramp-do-directory-files-and-attributes-with-stat'.
  On each of theses functions a replace of // is done.
 
  But this is done to workaround a bug in pdks on Opsware and I can't test
  it.
 
  The workaround I propose is to replace the //%N// of the stat command by
  **%N**. I thing it's impossible to create a link with stars (*) in name.

 Oh, it's possible:

 # touch /tmp/\*\*tmp\*\*
 # ln -s /tmp/\*\*tmp\*\* /tmp/\*\*\*tmp\*\*\*
 # ls -al /tmp/*tmp*
 lrwxrwxrwx 1 albinus albinus   12 Aug 20 10:00 /tmp/***tmp*** -
 /tmp/**tmp**
 -rw-rw-r-- 1 albinus albinus0 Aug 20 10:00 /tmp/**tmp**

 And your patch makes the Tramp test suite fail. Try

 # make check

 The problem is, that in function `tramp--test-special-characters' the
 file *foo*bar*baz* is checked. With your mask **, the stat command
 temporarily returns ***foo*bar*baz***, Tramp cannot decide safely,
 which of the ** characters has to be replaced in sed.

 So we would need another mask, which won't appear most likely in the
 file name. Maybe you play with generating an arbitrary string, as
 `tramp-end-of-heredoc' does?

 Best regards, Michael.

 ___
 Tramp-devel mailing list
 Tramp-devel@gnu.org
 https://lists.gnu.org/mailman/listinfo/tramp-devel

___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


tramp (2.2.11-24.5); auto-save remote buffer not respecting local directory

2015-05-22 Thread yary
Emacs is auto-saving remote buffers remotely, ignoring both
auto-save-file-name-transforms and tramp-auto-save-directory. The
enclosed session is from an emacs -Q session, so it has no
tramp-auto-save-directory and the default auto-save-file-name-transforms:

auto-save-file-name-transforms is a variable defined in `files.el'.
Its value is
((\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'
c:/Users/yhluc00/AppData/Local/Temp/\\2 t))

I am editing a large shell-script file, its path is
/pscp:yhluc00@slsudv53:/appl/spool/devmsa/yhluc00/all_respon/prd2_td01_087_sfwy7_ov_aggregate.ksh

but emacs still auto-saves it remotely, pausing my session and asking
for a password. The Messages buffer shows me that it *is* matching the
auto-save-file-name-transforms variable and applying UNIQUIFY, just not
using the localk directory.

Auto-saving...
Copying c:/Users/yhluc00/AppData/Local/Temp/tramp.94442-y.ksh# to
/pscp:yhluc00@slsudv53:/appl/spool/devmsa/yhluc00/all_respon/#_apscp_byhluc00@slsudv53_b_aappl_aspool_adevmsa_ayhluc00_aall__respon_aprd2__td01__087__sfwy7__ov__aggregate.ksh#...



Emacs  : GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Package: tramp (2.2.11-24.5)

current state:
==
State could not be dumped due to the following error:

(error Multibyte character in data for base64 encoding)

You should still send this bug report.
local variables:

;; *tramp/pscp yhluc00@slsudv53*
(setq-local
 default-directory /pscp:yhluc00@slsudv53:/
 )

load-path shadows:
==

#part type=text/plain buffer=*tramp/pscp yhluc00@slsudv53*
description=*tramp/pscp yhluc00@slsudv53*
prd2_td01_087_sfwy7_ov_aggregate
prd2_td01_087_sfwy7_ov_aggregate.ksh
prd2_td01_087_sfwy7_ov_aggregate.ksh~
ok
#/part

buffer=*debug tramp/pscp yhluc00@slsudv53* is in a pastebin at
http://pastebin.com/kcTZa9sn

___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


Re: version control and git

2015-03-11 Thread yary
How about adding C:/Program Files (x86)/Git/bin to your windows %PATH%
and removing the customization for vc-git-program? Then plain git will
find the right executable, no matter locally and remotely. That's what I
do. (You'll have to restart emacs after changing %PATH%.)

I like to set my windows env using the GUI under the System Control Panel,
but there's other ways to do it, search the web if you need help with that.

-y
___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


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($))'
-y


On Wed, Sep 18, 2013 at 6:09 AM, Michael Albinus michael.albi...@gmx.de wrote:
 Andrey Tykhonov atykho...@gmail.com 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 has very short life, they reinstalls very
 often, from the scratch, from template which I'm not able to change...

 I see. However, Tramp is not fixed to use `id' and nothing else. It
 needs `id' to recognize the user's uid and gid. If you could tell me,
 what the counterparts of the respective commands are on the remote host,
 I could teach Tramp to use them. Tramp needs to call the following
 commands, which would require a replacement:

 # id -u
 # id -un
 # id -g
 # id -gn

 Best regards,
 Andrey

 Best regards, Michael.

 ___
 Tramp-devel mailing list
 Tramp-devel@gnu.org
 https://lists.gnu.org/mailman/listinfo/tramp-devel

___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


Re: Access to repository-side files in version control repositories

2012-09-03 Thread yary
Some version control GUI's come with a repository browser that lets
you list  look at everything that's ever been checked in. It sounds
like you're looking for that within Emacs, and it does seem like it
could be implemented by using Tramp's transparent remote file handling
and vc's transparent version control access. It also seems like a fair
amount of design (since a repository is more than a filesystem),
coding and testing!

___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


Re: Access to repository-side files in version control repositories

2012-09-03 Thread yary
On Mon, Sep 3, 2012 at 9:50 AM, Michael Albinus michael.albi...@gmx.de wrote:
...
 vc.el has great support in working over revisions. You can apply M-x
 ediff-revision, which does exactly what you want. And Tramp lets you
 apply this command also for remote working copies, if you're
 interested in. Or you apply it for your local working copy, and vc.el
 brings you the different revisions behind the scenes.

 What do I miss?

I think the suggestion is It would be good to run ediff ( anything
else) without even needing a working copy in any buffer. Just put in
the path to the repository, and the specific object in that
repository, and read it as if there was no local version- even if
there is a local working copy in $temp as part of the implementation.

It gets messy when the buffer is writable- one place where the design
becomes non-trivial...

___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


Re: pscp method (or similar) without public keys?

2011-11-23 Thread yary
On Wed, Nov 23, 2011 at 6:40 AM, Chris Withers ch...@simplistix.co.uk wrote:
 Hi All,

 Is there any way to use tramp to remotely edit files when emacs is running
 on windows and access to the remote hosts is via ssh but with password-based
 authentication rather than public key auth?

Install plink, which is part of the PuTTY suite, somewhere in your
%PATH%, and you'll find that tramp works pretty well. You might need
to change the default connection method. Emacs will ask you for a
password when you open the first buffer to that host.

-y

___
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel


Tramp prevents opening new frame while offline?

2010-05-07 Thread yary
I have an emacs session open with some remotely-edited files on it,
using tramp 2.1.16. There's no internet connection, and I want to open
a new frame to do some other, local work. But when I hit ^x52 instead
of a new frame I see this in the debugger- not sure how to fix the
core issue. It looks like opening a frame causes emacs to try to
verify the contents of the buffer, and since there's no connection, it
can't verify. An easy workaround is to open a local or temp buffer
before opening a new frame, but can tramp do anything to allow
parent operations to complete in this kind of situation?

Debugger entered--Lisp error: (file-error Process died)
  signal(file-error (Process died))
  tramp-error([plink yhluc00 slsudv53
/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh] file-error
Process died)
  apply(tramp-error [plink yhluc00 slsudv53
/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh] file-error
Process died nil)
  byte-code(\304\216\305\306  \n%)\207 [vec-or-proc signal
fmt-string args ((byte-code \203-...
  tramp-process-actions(#process *tramp/plink yhlu...@slsudv53*
[plink yhluc00 slsudv53
/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh]
((tramp-login-prompt-regexp tramp-action-login)
(tramp-password-prompt-regexp tramp-action-password)
(tramp-wrong-passwd-regexp tramp-action-permission-denied)
(shell-prompt-pattern tramp-action-succeed)
(tramp-shell-prompt-pattern tramp-action-succeed)
(tramp-yesno-prompt-regexp tramp-action-yesno) (tramp-yn-prompt-regexp
tramp-action-yn) (tramp-terminal-prompt-regexp tramp-action-terminal)
(tramp-process-alive-regexp tramp-action-process-alive)) 60)
  byte-code(...
  tramp-maybe-open-connection([plink yhluc00 slsudv53
/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh])
  tramp-send-command([plink yhluc00 slsudv53
/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh] test -e
/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh 2/dev/null; echo
tramp_exit_status $? )
  tramp-send-command-and-check([plink yhluc00 slsudv53
/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh] test -e
/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  
tramp-handle-file-exists-p(/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  apply(tramp-handle-file-exists-p
/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  tramp-sh-file-name-handler(file-exists-p
/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  apply(tramp-sh-file-name-handler file-exists-p
/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  tramp-file-name-handler(file-exists-p
/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  
file-exists-p(/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  
tramp-handle-file-attributes(/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  apply(tramp-handle-file-attributes
/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  tramp-sh-file-name-handler(file-attributes
/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  apply(tramp-sh-file-name-handler file-attributes
/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  tramp-file-name-handler(file-attributes
/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  
file-attributes(/plink:yhlu...@slsudv53:/appl/spool/devmsa/yhluc00/IDG/rpr_catprofile_p.ksh)
  tramp-handle-verify-visited-file-modtime(#buffer rpr_catprofile_p.ksh)
  apply(tramp-handle-verify-visited-file-modtime #buffer rpr_catprofile_p.ksh)
  tramp-sh-file-name-handler(verify-visited-file-modtime #buffer
rpr_catprofile_p.ksh)
  apply(tramp-sh-file-name-handler verify-visited-file-modtime
#buffer rpr_catprofile_p.ksh)
  tramp-file-name-handler(verify-visited-file-modtime #buffer
rpr_catprofile_p.ksh)
  verify-visited-file-modtime(#buffer rpr_catprofile_p.ksh)
  (not (verify-visited-file-modtime (current-buffer)))
  (or (buffer-modified-p) (not (verify-visited-file-modtime ...)))
  (and buffer-file-number (or (buffer-modified-p) (not ...)))
  (or revert-buffer-function
revert-buffer-insert-file-contents-function (and buffer-file-number
(or ... ...)))
  x-create-frame(((visibility)))
  x-create-frame-with-faces(nil)
  make-frame()
  make-frame-command()
  call-interactively(make-frame-command nil nil)


___
Tramp-devel mailing list
Tramp-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel


Re: Weird behaviour when entering the filename

2010-01-25 Thread yary
FYI, I did some searching about busybox's ls and coloring, and it
seems like a known controversy/shortcoming- excerpted from a 2005
mailing list thread-

 I'd like to turn off the color with an environment variable
[...] but I can't.
...
  i also think that along with this, the default coloring behavior
  should change from auto to off.  this would make the behavior
  symmetric with that of the -F adornments:  i.e., only there when
  you ask.

gnu ls uses the --color option as well, that's where busybox's
came from, so adding support for customizing that in tramp wouldn't be
completely irresponsible. As a BSD'er myself, it would be a waste for
me, but I'll live.

-y


On Mon, Jan 25, 2010 at 9:30 AM, Francis Moreau francis.m...@gmail.com wrote:
 [ NOTE: last email I sent you was refused by your email server... ]

 On Mon, Jan 25, 2010 at 5:24 PM, Michael Albinus michael.albi...@gmx.de 
 wrote:
 Francis Moreau francis.m...@gmail.com writes:

 I searched in the documentation to see which var can be customized in
 order to append '--color=never' to the ls command but I fail to find
 the answer.

 Could you give me a pointer ?



___
Tramp-devel mailing list
Tramp-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel


Re: Tramp and recursive file operations

2009-09-30 Thread yary
On Wed, Sep 30, 2009 at 1:06 AM, Michael Albinus michael.albi...@gmx.de wrote:
..
 OK. Looking outside dired, there is already delete-directory, good for
 empty directories. Maybe we add an optional parameter RECURSIVE?

 A copy-directory function does not exist. What about allowing the first
 parameter of copy-file to be a directory name? This would imply to copy
 recursively.

 Comments?

I like the idea of adding an optional parameter to delete-directory.

Is there any existing code that may be using the error-check in
copy-file to ensure that the first arg is not a directory? I like the
idea of making the existing copy-file smart enough to do the right
thing when the first argument is a dir, but it could need an optional
RECURSIVE parameter if and only if other callers rely on it rejecting
directories.

-y


___
Tramp-devel mailing list
Tramp-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel


Exiting debugger/recursive edit mode?

2009-04-10 Thread yary
Hello all,

Sometimes my tramp sessions will get in a state where I have to use
M-x tramp-cleanup-all-connections to resume editing my buffers
(usually after a network disconnect/reconnect, using plink to a
machine that requires password auth). When this happens, tramp throws
an error that puts Emacs into recursive edit mode. When I hit C-M-c,
emacs complains that it can't exit recursive edit mode- error
reproduced below. Not sure if this is a tramp problem, or just
something I need to learn about the emacs debugger, but if anyone can
help me get my emacs out of recursive edit easily let me know...

Debugger entered--Lisp error: (error Cannot return from the debugger
in an error)
  signal(file-error (Process died))
  tramp-error([plink myname host53 /home/dir/file.txt]
file-error Process died)
  apply(tramp-error [plink myname host53 /home/dir/file.txt]
file-error Process died nil)
  byte-code(.\n.%). [vec-or-proc signal fmt-string args
((byte-code .-.!.-.!..!.#.!..!!.!.). [vec-or-proc tramp-verbose
enable-recursive-minibuffers buffer zerop t pop-to-buffer bufferp
processp process-buffer tramp-get-buffer sit-for 30] 3)) apply
tramp-error] 6)
  tramp-process-actions(#process *tramp/plink myn...@host53*
[plink myname host53 /home/dir/file.txt]
((tramp-login-prompt-regexp tramp-action-login)
(tramp-password-prompt-regexp tramp-action-password)
(tramp-wrong-passwd-regexp tramp-action-permission-denied)
(shell-prompt-pattern tramp-action-succeed)
(tramp-shell-prompt-pattern tramp-action-succeed)
(tramp-yesno-prompt-regexp tramp-action-yesno) (tramp-yn-prompt-regexp
tramp-action-yn) (tramp-terminal-prompt-regexp tramp-action-terminal)
(tramp-process-alive-regexp tramp-action-process-alive)) 60)
  
byte-code(.!.!.\n.\n!.\n!.?.c.!.!g!.e.!@.,.].!.!@.,\n.k.\n!.k.\n!.A\.\.!.\.!.B.C.D.E.F.!.J.!.K
.!.G.G!).!!.!.G.G!).!!.!.G.G!).!!.!.!.!.!.H.#.!.!.I#).j.\n!@.,.\n.\@.,.\n.`.I$.B.;@.k.k!.l.k!.m.k!.n.o.a.l.b.\.P.a.L.c.\.Q.a.L.d.\.R.e.K.f.g.$.S.S!.T.S.S!.U.S.S!.V.P.W.h.\n.i.j.k.X.!.J.G.!.K
.G.!.G.G!).!!.G.!.G.G!).!!.G.!.G.(.G!).4.!!.g...@.!.g.!.!\!#.Y.Z.S.c.R.c.l.Q.R\.Q.m.[.N\.n.o.N\.O.n.p.N\.n.t.l.\\.u.m.].v.n.^.n.f.n.m.f.m.o.f.o.q.nb.r.mb.s.ob.t.ybf.z.w.u.q.#.j.v.w.r.w.j.x@.,.y.w.$.z.\n._.$.{@...ba.b.u.|.\n.\..*.
[vec process-environment p args fmt-string level
tramp-get-connection-process copy-sequence nil (byte-code .
.#\.V.d.d.!.d.!..d.$.!..6.\.d.\f.N.\n#E!C. .,.\f.\n#C\.,. [p vec
args fmt-string signal vec-or-proc tramp-time-diff current-time
tramp-get-connection-property last-cmd-time ... 60 processp
process-status ... tramp-send-command echo are you awake t ...
tramp-wait-for-output 10 file-error Awake did fail nil 1 %s
error-message-string error-message apply format ... ... level] 11)
((file-error ...)) processp process-status (run open) tramp-get-buffer
zerop tramp-file-name-user 3 Opening connection for %s using %s...
tramp-file-name-host tramp-file-name-method (byte-code .X.q.
.X.7.U.2.U.'.2.U.1.2.P\f#.Y.p.[.!.[.!!.[.r.!q.!.).p.!.p.\.P\f$*.
[level tramp-verbose save-match-data-internal fmt-string args
vec-or-proc match-data ... 3 apply message 0  1 2 Warning: 
Tramp:  4 processp buffer-name process-buffer
tramp-dissect-file-name vectorp tramp-debug-message format (%d) # 
default-directory] 6) ((error)) Opening connection for %...@%s using
%s... delete-process setenv TERM LC_ALL C PROMPT_COMMAND
PS1 $  tramp-compute-multi-hops boundp temporary-file-directory
fboundp temp-directory getenv TEMP file-directory-p
file-name-as-directory TMP TMPDIR file-exists-p c:/temp message
Neither `temporary-file-directory' nor `temp-directory' is defined --
using /tmp. /tmp start-process tramp-get-connection-property ...]
11)
  tramp-maybe-open-connection([plink myname host53 /home/dir/file.txt])
  tramp-send-command([plink myname host53 /home/dir/file.txt]
test -e /home/dir/file.txt 2/dev/null; echo tramp_exit_status $? )
  tramp-send-command-and-check([plink myname host53
/home/dir/file.txt] test -e /home/dir/file.txt)
  tramp-handle-file-exists-p(/plink:myn...@host53:/home/dir/file.txt)
  apply(tramp-handle-file-exists-p /plink:myn...@host53:/home/dir/file.txt)
  tramp-sh-file-name-handler(file-exists-p
/plink:myn...@host53:/home/dir/file.txt)
  apply(tramp-sh-file-name-handler file-exists-p
/plink:myn...@host53:/home/dir/file.txt)
  tramp-file-name-handler(file-exists-p
/plink:myn...@host53:/home/dir/file.txt)
  file-exists-p(/plink:myn...@host53:/home/dir/file.txt)
  tramp-handle-file-attributes(/plink:myn...@host53:/home/dir/file.txt)
  apply(tramp-handle-file-attributes /plink:myn...@host53:/home/dir/file.txt)
  tramp-sh-file-name-handler(file-attributes
/plink:myn...@host53:/home/dir/file.txt)
  apply(tramp-sh-file-name-handler file-attributes
/plink:myn...@host53:/home/dir/file.txt)
  tramp-file-name-handler(file-attributes
/plink:myn...@host53:/home/dir/file.txt)
  file-attributes(/plink:myn...@host53:/home/dir/file.txt)
  tramp-handle-verify-visited-file-modtime(#buffer file.txt)
  

Re: test -e stopped working

2008-10-20 Thread yary
On Sat, Oct 18, 2008 at 3:41 AM, Michael Albinus [EMAIL PROTECTED] wrote:
...
 Try M-x tramp-cleanup-all-connections.

That worked, thanks!

I'm thinking of putting a call to that in ~/.emacs - any downside/reason not to?


___
Tramp-devel mailing list
Tramp-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel


test -e stopped working

2008-10-17 Thread yary
At the start of work today, tramp/plink stopped working! Not sure how
what triggered it. Always gives the error:
Couldn't find exit status of 'test -e /appl'
/appl is the root directory of where I'm working. Tried quitting 
restarting emacs, same problem. Thing is, I can tab-complete to the
file I want, so tramp.plink is communicating- just can't open
anything!
Stack trace  debug trace enclosed.
Tramp version 2.1.15-pre

Another machine with tramp 2.1.14 is still working OK with that machine.

===

Debugger entered--Lisp error: (file-error Couldn't find exit status
of `test -e /appl')
  signal(file-error (Couldn't find exit status of `test -e /appl'))
  tramp-send-command-and-check([plink yh sls5.s_.com /appl]
test -e /appl)
  tramp-handle-file-exists-p(/plink:[EMAIL PROTECTED]:/appl)
  apply(tramp-handle-file-exists-p /plink:[EMAIL PROTECTED]:/appl)
  tramp-sh-file-name-handler(file-exists-p /plink:[EMAIL PROTECTED]:/appl)
  apply(tramp-sh-file-name-handler file-exists-p /plink:[EMAIL 
PROTECTED]:/appl)
  tramp-file-name-handler(file-exists-p /plink:[EMAIL PROTECTED]:/appl)
  file-exists-p(/plink:[EMAIL PROTECTED]:/appl)
  tramp-handle-file-attributes(/plink:[EMAIL PROTECTED]:/appl)
  apply(tramp-handle-file-attributes /plink:[EMAIL PROTECTED]:/appl)
  tramp-sh-file-name-handler(file-attributes /plink:[EMAIL PROTECTED]:/appl)
  apply(tramp-sh-file-name-handler file-attributes
/plink:[EMAIL PROTECTED]:/appl)
  tramp-file-name-handler(file-attributes /plink:[EMAIL PROTECTED]:/appl)
  file-attributes(/plink:[EMAIL PROTECTED]:/appl)
  tramp-handle-file-truename(/plink:[EMAIL 
PROTECTED]:/appl/spool/devmsa/yh/OCT_Store/OCT_StoreSpecificSQL.ksh)
  apply(tramp-handle-file-truename
/plink:[EMAIL 
PROTECTED]:/appl/spool/devmsa/yh/OCT_Store/OCT_StoreSpecificSQL.ksh)
  tramp-sh-file-name-handler(file-truename
/plink:[EMAIL 
PROTECTED]:/appl/spool/devmsa/yh/OCT_Store/OCT_StoreSpecificSQL.ksh)
  apply(tramp-sh-file-name-handler file-truename
/plink:[EMAIL 
PROTECTED]:/appl/spool/devmsa/yh/OCT_Store/OCT_StoreSpecificSQL.ksh)
  tramp-file-name-handler(file-truename
/plink:[EMAIL 
PROTECTED]:/appl/spool/devmsa/yh/OCT_Store/OCT_StoreSpecificSQL.ksh)
  file-truename(/plink:[EMAIL 
PROTECTED]:/appl/spool/devmsa/yh/OCT_Store/OCT_StoreSpecificSQL.ksh)
  find-file-noselect(/plink:[EMAIL 
PROTECTED]:/appl/spool/devmsa/yh/OCT_Store/OCT_StoreSpecificSQL.ksh
nil nil t)
  find-file(/plink:[EMAIL 
PROTECTED]:/appl/spool/devmsa/yh/OCT_Store/OCT_StoreSpecificSQL.ksh
t)
  call-interactively(find-file nil nil)

===

10:56:40 tramp-maybe-open-connection (3) # Opening connection for
[EMAIL PROTECTED] using plink...
10:56:40 tramp-get-connection-property (7) # process-name nil
10:56:40 tramp-get-connection-property (7) # process-buffer nil
10:56:40 tramp-maybe-open-connection (6) # C:\WINDOWS\system32\cmd.exe
10:56:40 tramp-maybe-open-connection (3) # Waiting 60s for local shell
to come up...
10:56:40 tramp-get-connection-property (7) # check-remote-echo nil
10:56:40 tramp-get-connection-property (7) # check-remote-echo nil
10:56:40 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run
10:56:40 tramp-accept-process-output (10) #
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\yh\LOCALS~1\Temp
10:56:40 tramp-get-connection-property (7) # check-remote-echo nil
10:56:40 tramp-get-connection-property (7) # check-remote-echo nil
10:56:40 tramp-wait-for-regexp (6) #
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\yh\LOCALS~1\Temp
10:56:40 tramp-get-file-property (8) #  gateway nil
10:56:40 tramp-set-connection-property (7) # temp-file
c:/DOCUME~1/yh/LOCALS~1/Temp/tramp.2148nbw
10:56:40 tramp-maybe-open-connection (3) # Sending command `plink
sls5.s_.com -l yh  -ssh  exit || exit'
10:56:40 tramp-get-connection-property (7) # process-name nil
10:56:40 tramp-get-connection-property (7) # remote-echo nil
10:56:40 tramp-send-command (6) # plink sls5.s_.com -l yh  -ssh  exit || exit
10:56:40 tramp-get-connection-property (7) # process-name nil
10:56:40 tramp-get-connection-property (7) # chunksize nil
10:56:40 tramp-set-connection-property (7) # last-cmd-time (18680 53720 578000)
10:56:40 tramp-send-string (10) # plink sls5.s_.com -l yh  -ssh  exit || exit
10:56:40 tramp-get-connection-property (7) # process-buffer nil
10:56:40 tramp-process-actions (3) # Waiting for prompts from remote shell
10:56:40 tramp-accept-process-output (10) # *tramp/plink [EMAIL PROTECTED] run
10:56:40 tramp-accept-process-output (10) #
plink sls5.s_.com -l yh  -ssh  exit || exit
10:56:40 tramp-process-one-action (5) # Looking for regexp .*ogin\(
.*\)?: *\' from remote shell
10:56:40 tramp-get-connection-property (7) # check-remote-echo nil
10:56:40 tramp-get-connection-property (7) # check-remote-echo nil
10:56:40 tramp-process-one-action (5) # Looking for regexp
^.*\([pP]assword\|[pP]assphrase\).*:[EMAIL PROTECTED] *\' from remote shell
10:56:40 

Re: File completion woe

2008-07-23 Thread yary
On Wed, Jul 23, 2008 at 6:27 AM, Michael Albinus [EMAIL PROTECTED] wrote:
 yary [EMAIL PROTECTED] writes:

 Hi,

 I've never had file completion work with tramp, and after years of putting
 up with it, I'm now asking for help!

 Sorry for the late answer; as usual it takes time until I find a w32
 machine for testing.

Sorry for my late update as well- a few days after posting, I examined
and changed my emacs options again and got file completion to work for
most of my hosts. There is still one that that it fails on- and that's
a host where tramp didn't even work until I posted some stack traces
here. That machine acts weird. See
http://thread.gmane.org/gmane.emacs.tramp/6566
...

 I have installed GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of
 2008-05-15 on LENNART-69DE564. Nothing else, so it is the built-in
 Tramp 2.1.14-pre. My .emacs is empty (yes, it is not *my* machine).
 No site specific files for Emacs, AFAICS.

 Then I open a connection to a RHEL5 machine via C-x C-f
 /plink:[EMAIL PROTECTED]: RET. Being there,
 there is no problem in completing filenames with C-x C-f abc TAB.

 Could you, please, check it without any own settings, i.e. starting
 emacs -Q?

emacs -Q still fails with that one host. I have tramp-verbose 10
debug output pasted here
http://www.epastebin.com/?id=236c72b8c5f3baeb4ed17b86fb6d8a77

(with the hostname altered)

Thanks for looking at it.

-y


___
Tramp-devel mailing list
Tramp-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel


File completion woe

2008-06-24 Thread yary
I've never had file completion work with tramp, and after years of putting
up with it, I'm now asking for help!

I can tab-complete filenames that use the FTP method- presumably using
ange-FTP and its directory caching, since it completes quickly.
Unfortunately I have no luck with my usual connect mode, plink.

In an attempt to get it working, I looked in the Partial Completion
customization group, turned on Partial Completion Mode, Set  Saved it.
Still Tab or M-Tab gives me [No match]

Dired works OK over tramp/plink.

I connect to NetBSD and OpenBSD hosts, which don't color text in their
shells, so I don't think that's the issue. Using Tramp-version 2.1.13, GNU
Emacs 22.0.990.1 (i386-mingw-nt5.1.2600) of 2007-05-23 on LENNART-69DE564
(patched).

Looking for any help getting this convenience feature working.
___
Tramp-devel mailing list
Tramp-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel


Re: One host hanging on connect

2008-05-14 Thread yary
That patch works like a charm, thanks!


___
Tramp-devel mailing list
Tramp-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel


Re: One host hanging on connect

2008-05-13 Thread yary
here are my verbose buffers-  *tramp/plink host.asite.org*

OpenBSD 3.9
tramp_exit_status 0

///4faf1ee001e7616f9c20e0faf80cbe0f



==
*debug tramp/plink yary at host asite org *

08:46:00 tramp-maybe-open-connection (3) # Opening connection for
[EMAIL PROTECTED] using plink...
08:46:00 tramp-get-connection-property (7) # process-name nil
08:46:00 tramp-get-connection-property (7) # process-buffer nil
08:46:00 tramp-maybe-open-connection (6) # C:\WINDOWS\system32\cmd.exe
08:46:00 tramp-maybe-open-connection (3) # Waiting 60s for local shell
to come up...
08:46:00 tramp-get-connection-property (7) # check-remote-echo nil
08:46:00 tramp-get-connection-property (7) # check-remote-echo nil
08:46:00 tramp-accept-process-output (10) # *tramp/plink
[EMAIL PROTECTED] run
08:46:01 tramp-accept-process-output (10) #
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\STEPHE~1\LOCALS~1\Temp
08:46:01 tramp-get-connection-property (7) # check-remote-echo nil
08:46:01 tramp-get-connection-property (7) # check-remote-echo nil
08:46:01 tramp-wait-for-regexp (6) #
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\STEPHE~1\LOCALS~1\Temp
08:46:01 tramp-get-file-property (8) #  gateway nil
08:46:01 tramp-set-connection-property (7) # temp-file
c:/DOCUME~1/STEPHE~1/LOCALS~1/Temp/tramp.5172vJc
08:46:01 tramp-maybe-open-connection (3) # Sending command `plink
host.asite.org -l yary  -ssh  exit || exit'
08:46:01 tramp-get-connection-property (7) # process-name nil
08:46:01 tramp-get-connection-property (7) # remote-echo nil
08:46:01 tramp-send-command (6) # plink host.asite.org -l yary  -ssh
 exit || exit
08:46:01 tramp-get-connection-property (7) # process-name nil
08:46:01 tramp-get-connection-property (7) # chunksize nil
08:46:01 tramp-set-connection-property (7) # last-cmd-time (18473 47033 171000)
08:46:01 tramp-send-string (10) # plink host.asite.org -l yary  -ssh
 exit || exit
08:46:01 tramp-get-connection-property (7) # process-buffer nil
08:46:01 tramp-process-actions (3) # Waiting for prompts from remote shell
08:46:01 tramp-accept-process-output (10) # *tramp/plink
[EMAIL PROTECTED] run
08:46:01 tramp-accept-process-output (10) #
plink host.asite.org -l yary  -ssh  exit || exit
08:46:01 tramp-process-one-action (5) # Looking for regexp .*ogin\(
.*\)?: *\' from remote shell
08:46:01 tramp-get-connection-property (7) # check-remote-echo nil
08:46:01 tramp-get-connection-property (7) # check-remote-echo nil
08:46:01 tramp-process-one-action (5) # Looking for regexp
^.*\([pP]assword\|[pP]assphrase\).*:


===

Interesting. What if I remove the key from pagent?
Then tramp asks me for a password, and it still hangs after. Here are
the buffers without pagent keys:

*tramp/plink host.asite.org*
OpenBSD 3.9
tramp_exit_status 0

///4faf1ee001e7616f9c20e0faf80cbe0f



*debug tramp/plink yary at host asite org *

08:54:57 tramp-flush-file-property (8) # /
08:54:59 tramp-maybe-open-connection (3) # Opening connection for
[EMAIL PROTECTED] using plink...
08:54:59 tramp-get-connection-property (7) # process-name nil
08:54:59 tramp-get-connection-property (7) # process-buffer nil
08:54:59 tramp-maybe-open-connection (6) # C:\WINDOWS\system32\cmd.exe
08:54:59 tramp-maybe-open-connection (3) # Waiting 60s for local shell
to come up...
08:54:59 tramp-get-connection-property (7) # check-remote-echo nil
08:54:59 tramp-get-connection-property (7) # check-remote-echo nil
08:54:59 tramp-accept-process-output (10) # *tramp/plink
[EMAIL PROTECTED] run
08:55:00 tramp-accept-process-output (10) #
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\STEPHE~1\LOCALS~1\Temp
08:55:00 tramp-get-connection-property (7) # check-remote-echo nil
08:55:00 tramp-get-connection-property (7) # check-remote-echo nil
08:55:00 tramp-wait-for-regexp (6) #
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\STEPHE~1\LOCALS~1\Temp
08:55:00 tramp-get-file-property (8) #  gateway nil
08:55:00 tramp-set-connection-property (7) # temp-file
c:/DOCUME~1/STEPHE~1/LOCALS~1/Temp/tramp.51728Ti
08:55:00 tramp-maybe-open-connection (3) # Sending command `plink
host.asite.org -l yary  -ssh  exit || exit'
08:55:00 tramp-get-connection-property (7) # process-name nil
08:55:00 tramp-get-connection-property (7) # remote-echo nil
08:55:00 tramp-send-command (6) # plink host.asite.org -l yary  -ssh
 exit || exit
08:55:00 tramp-get-connection-property (7) # process-name nil
08:55:00 tramp-get-connection-property (7) # chunksize nil
08:55:00 tramp-set-connection-property (7) # last-cmd-time (18473 47572 14)
08:55:00 tramp-send-string (10) # plink host.asite.org -l yary  -ssh
 exit || exit
08:55:00 tramp-get-connection-property (7) # process-buffer nil
08:55:00 tramp-process-actions (3) # Waiting for prompts from remote shell
08:55:00 tramp-accept-process-output (10) # *tramp/plink
[EMAIL PROTECTED] run
08:55

Re: One host hanging on connect

2008-05-13 Thread yary
On Tue, May 13, 2008 at 9:23 AM, Michael Albinus [EMAIL PROTECTED] wrote:
...

 Could you, please, rerun the test *after* starting up a fresh, clean Emacs?

here it is, after (setq tramp-verbose 10) and nothing else... the
debug log has some NULs in it (C-@) which I've replaced with ^@. The
previous message was probably truncated at the first NUL.

*tramp/plink [EMAIL PROTECTED]
OpenBSD 3.9
tramp_exit_status 0

///b799e8ae826fe51395cca1b11f83abee


==
*debug tramp/plink [EMAIL PROTECTED]
15:35:04 tramp-maybe-open-connection (3) # Opening connection for
[EMAIL PROTECTED] using plink...
15:35:04 tramp-get-connection-property (7) # process-name nil
15:35:04 tramp-get-connection-property (7) # process-buffer nil
15:35:04 tramp-maybe-open-connection (6) # C:\WINDOWS\system32\cmd.exe
15:35:04 tramp-maybe-open-connection (3) # Waiting 60s for local shell
to come up...
15:35:04 tramp-get-connection-property (7) # check-remote-echo nil
15:35:04 tramp-get-connection-property (7) # check-remote-echo nil
15:35:04 tramp-accept-process-output (10) # *tramp/plink
[EMAIL PROTECTED] run
15:35:04 tramp-accept-process-output (10) #
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\STEPHE~1\LOCALS~1\Temp
15:35:04 tramp-get-connection-property (7) # check-remote-echo nil
15:35:04 tramp-get-connection-property (7) # check-remote-echo nil
15:35:04 tramp-wait-for-regexp (6) #
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\STEPHE~1\LOCALS~1\Temp
15:35:04 tramp-get-file-property (8) #  gateway nil
15:35:04 tramp-set-connection-property (7) # temp-file
c:/DOCUME~1/STEPHE~1/LOCALS~1/Temp/tramp.2720INp
15:35:04 tramp-maybe-open-connection (3) # Sending command `plink
host.asite.org -l yary  -ssh  exit || exit'
15:35:04 tramp-get-connection-property (7) # process-name nil
15:35:04 tramp-get-connection-property (7) # remote-echo nil
15:35:04 tramp-send-command (6) # plink host.asite.org -l yary  -ssh
 exit || exit
15:35:04 tramp-get-connection-property (7) # process-name nil
15:35:04 tramp-get-connection-property (7) # chunksize nil
15:35:04 tramp-set-connection-property (7) # last-cmd-time (18474 6040 953000)
15:35:04 tramp-send-string (10) # plink host.asite.org -l yary  -ssh
 exit || exit
15:35:04 tramp-get-connection-property (7) # process-buffer nil
15:35:04 tramp-process-actions (3) # Waiting for prompts from remote shell
15:35:04 tramp-accept-process-output (10) # *tramp/plink
[EMAIL PROTECTED] run
15:35:05 tramp-accept-process-output (10) #
plink host.asite.org -l yary  -ssh  exit || exit
15:35:05 tramp-process-one-action (5) # Looking for regexp .*ogin\(
.*\)?: *\' from remote shell
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-process-one-action (5) # Looking for regexp
^.*\([pP]assword\|[pP]assphrase\).*:[EMAIL PROTECTED] *\' from remote shell
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-process-one-action (5) # Looking for regexp
^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification
failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o
supported authentication methods left to try!\)\|Permission
denied\|Sorry, try again\.\|Tramp connection closed\).*\|^.*\(Received
signal [0-9]+\).*\' from remote shell
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-process-one-action (5) # Looking for regexp ^[^#$%
]*[#$%] *\' from remote shell
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-process-one-action (5) # Looking for regexp ^[^#$%
]*[#$%] *\(\[[0-9;]*[a-zA-Z] *\)*\' from remote shell
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-process-one-action (5) # Looking for regexp \(Are you
sure you want to continue connecting (yes/no)\?\)\s-*\' from remote
shell
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-process-one-action (5) # Looking for regexp
\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return
cancels connectio\)n)\)\s-*\' from remote shell
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-process-one-action (5) # Looking for regexp \(TERM =
(.*)\|Terminal type\? \[.*\]\)\s-*\' from remote shell
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-get-connection-property (7) # check-remote-echo nil
15:35:05 tramp-process-one-action (5) # Looking for regexp \' from
remote

Re: tramp/plink works with one host, but not another

2007-01-11 Thread Yary H
As of tramp 2.0.55, all my hosts work well with plink  windows-emacs, 
thanks!


As a side question, what's the difference between the 2.0.x and 2.1.x 
versions of tramp?




___
Tramp-devel mailing list
Tramp-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel


Re: tramp/plink works with one host, but not another

2006-12-11 Thread Yary H
I can successfully connect via plink from windows command shell or 
cygwin bash

to bell... (netbsd), kzsu... (freebsd), yary...rg (openbsd)

However, tramp can only connect to bell  kzsu. It fails on yary...rg:
Error: File error: [[Regexp `^///dcb65d0c5503bb1df6c14094f9fac5e1^M?$' 
not found in 10 secs]]
tramp-wait-for-regexp: [[Regexp 
`^///dcb65d0c5503bb1df6c14094f9fac5e1^M?$' not found in 10 secs]]


(Where ^M is ctrl-M, I changed for this mail message) - and I only see 
that error the 2nd time I try, the first time, it hangs.until I hit ^G


Emacs  : GNU Emacs 22.0.91.1 (i386-mingw-nt5.1.2600)
of 2006-12-03 on W2ONE
Package: tramp (2.1.8-pre)

current state:
==
(setq
tramp-current-method plink
tramp-current-user red
tramp-current-host kzsu...du
tramp-auto-save-directory nil
tramp-default-method plink
tramp-default-method-alist '(( \\`\\(anonymous\\|ftp\\)\\' ftp)
 (\\`ftp\\.  ftp)
 (\\`localhost\\' \\`root\\' su))
tramp-default-host INKY0
tramp-default-proxies-alist nil
tramp-default-user nil
tramp-default-user-alist '((\\`su\\(do\\)?\\' nil root)
   (\\`r\\(em\\)?\\(cp\\|sh\\)\\|telnet\\' nil
Administrator)
   )
tramp-rsh-end-of-line \n
tramp-default-password-end-of-line \n
tramp-remote-path '(tramp-default-remote-path /usr/sbin /usr/local/bin
/local/bin /local/freeware/bin /local/gnu/bin
/usr/freeware/bin /usr/pkg/bin /usr/contrib/bin)
tramp-login-prompt-regexp .*ogin\\( .*\\)?: *
tramp-password-prompt-regexp (base64-decode-string 
\Xi4qXChbcFBdYXNzd29yZFx8W3BQXWFzc3BocmFzZVwpLio6AD8gKg==\
tramp-wrong-passwd-regexp ^.*\\(Connection \\(?:closed by foreign 
host\\.\\|refused\\)\\|Host key verification failed\\.\\|Login 
\\(?:[Ii]ncorrect\\)\\|N\\(?:ame or service not known\\|o supported 
authentication methods left to try!\\)\\|Permission denied\\.\\|Sorry, 
try again\\.\\|Tramp connection closed\\).*\\|^.*\\(Received signal 
[0-9]+\\).*
tramp-yesno-prompt-regexp \\(Are you sure you want to continue 
connecting (yes/no)\\?\\)\\s-*
tramp-yn-prompt-regexp \\(\\(?:Store key in cache\\? (y/\\|Update 
cached key\\? (y/n, Return cancels connectio\\)n)\\)\\s-*
tramp-terminal-prompt-regexp \\(TERM = (.*)\\|Terminal type\\? 
\\[.*\\]\\)\\s-*

tramp-temp-name-prefix tramp.
tramp-file-name-structure '(^/\\(\\([a-zA-Z_0-9-]+\\):\\)?\\(\\([^:/ 
   ]+\\)@\\)?\\([a-zA-Z0-9_.-]+\\(#[0-9]+\\)?\\)?:\\(.*$\\) 2 4 5 7)

tramp-file-name-regexp \\`/[^/:]+:
tramp-methods '((ftp)
(rcp (tramp-login-program rsh)
 (tramp-login-args ((%h) (-l %u)))
 (tramp-remote-sh /bin/sh) (tramp-copy-program rcp)
 (tramp-copy-args ((-p %k))) (tramp-copy-keep-date t)
 (tramp-password-end-of-line nil))
(scp (tramp-login-program ssh)
 (tramp-login-args
  ((%h) (-l %u) (-p %p)
   (-o [EMAIL PROTECTED]:%%p)
   (-o ControlMaster=yes) (-e none))
  )
 (tramp-remote-sh /bin/sh) (tramp-copy-program scp)
 (tramp-copy-args
  ((-P %p) (-p %k) (-q)
   (-o [EMAIL PROTECTED]:%%p)
   (-o ControlMaster=auto))
  )
 (tramp-copy-keep-date t) (tramp-password-end-of-line nil))
(scp1 (tramp-login-program ssh)
 (tramp-login-args
  ((%h) (-l %u) (-p %p)
   (-o [EMAIL PROTECTED]:%%p)
   (-o ControlMaster=yes) (-1 -e none))
  )
 (tramp-remote-sh /bin/sh) (tramp-copy-program scp)
 (tramp-copy-args
  ((-1) (-P %p) (-p %k) (-q)
   (-o [EMAIL PROTECTED]:%%p)
   (-o ControlMaster=auto))
  )
 (tramp-copy-keep-date t) (tramp-password-end-of-line nil))
(scp2 (tramp-login-program ssh)
 (tramp-login-args
  ((%h) (-l %u) (-p %p)
   (-o [EMAIL PROTECTED]:%%p)
   (-o ControlMaster=yes) (-2 -e none))
  )
 (tramp-remote-sh /bin/sh) (tramp-copy-program scp)
 (tramp-copy-args
  ((-2) (-P %p) (-p %k) (-q)
   (-o [EMAIL PROTECTED]:%%p)
   (-o ControlMaster=auto))
  )
 (tramp-copy-keep-date t) (tramp-password-end-of-line nil))
(scp1_old (tramp-login-program ssh1)
 (tramp-login-args
  ((%h) (-l %u) (-p %p) (-e none)))
 (tramp-remote-sh /bin/sh) (tramp-copy-program scp1)
 (tramp-copy-args ((-p %k))) (tramp-copy-keep-date t)
 (tramp-password-end-of-line nil))
(scp2_old (tramp-login-program ssh2)
 (tramp-login-args
  ((%h) (-l %u) (-p %p) (-e none)))
 (tramp-remote-sh /bin/sh) (tramp-copy-program scp2)
 (tramp-copy-args ((-p %k))) (tramp-copy-keep-date t)
 (tramp-password-end-of-line nil))
(sftp (tramp-login-program ssh)
 (tramp-login-args
  ((%h) (-l %u) (-p %p) (-e none)))
 (tramp-remote-sh /bin/sh) (tramp-copy-program sftp)
 (tramp-copy-args nil) (tramp-copy-keep-date nil)
 (tramp-password-end

tramp/plink works with one host, but not another

2006-12-06 Thread Yary H

Hello all,

I'm running tramp 2.1.7 with GNU Emacs 22.0.91.1 
(i386-mingw-nt5.1.2600) of 2006-12-03 on W2ONE (that's NT emacs, on 
Windows XP) - using the plink method.


With one server, I can read directories, read files, write files, all 
the good stuff. Excellent!


Another server, it connects, asks me for password, correctly rejects 
incorrect passwords, but when I enter the correct password, it hangs 
until I hit ^G at the message Tramp: Found remote shell prompt on 
`.x-x-x.org'


Full trace from the session is long so I pasted it here: 
http://www.anope.org/paste2.php?id=ad0d3a6a


side note- my password was in the trace output! I had to manually elide 
the line that says 'tramp-read-passwd: --'


Connecting manually, it looks like the setups for the two servers are 
the same, I don't see anything obvious (see end of message). Can anyone 
help me figure this out?


thanks

-y

=== working server 
C:\Temp\trampplink -v [EMAIL PROTECTED]
Server version: SSH-2.0-OpenSSH_3.4 NetBSD_Secure_Shell-20030917
We claim version: SSH-2.0-PuTTY_Release_0.58
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-rsa 1024 79:4e:7f:20:37:d6:ed:af:e7:05:84:b1:f6:18:b6:33
Initialised AES-256 client-server encryption
Initialised HMAC-SHA1 client-server MAC algorithm
Initialised AES-256 server-client encryption
Initialised HMAC-SHA1 server-client MAC algorithm
Using username yary.
Keyboard-interactive authentication refused
[EMAIL PROTECTED]'s password:
Sent password
Access granted
Opened channel for session
Allocated pty (ospeed 38400bps, ispeed 38400bps)
Started a shell/command
Last login: Wed Dec  6 16:18:34 2006 from .
NetBSD 1.6.2_STABLE (BELL) #0: Thu May 25 20:38:56 PDT 2006

Welcome to NetBSD!

You have maling list msgs: s-xxxdy
spam
working$ exit
logout

=== hanging server 
C:\Temp\trampplink -v [EMAIL PROTECTED]
Server version: SSH-1.99-OpenSSH_4.3
We claim version: SSH-2.0-PuTTY_Release_0.58
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-rsa 1024 69:63:b0:1e:3d:76:18:e3:42:77:58:60:83:b9:42:46
Initialised AES-256 client-server encryption
Initialised HMAC-SHA1 client-server MAC algorithm
Initialised AES-256 server-client encryption
Initialised HMAC-SHA1 server-client MAC algorithm
Using username yary.
Keyboard-interactive authentication refused
[EMAIL PROTECTED]'s password:
Sent password
Access granted
Opened channel for session
Allocated pty (ospeed 38400bps, ispeed 38400bps)
Started a shell/command
Last login: Wed Dec  6 16:51:16 2006 from ...

OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006

Welcome to OpenBSD: The proactively secure Unix-like operating system.
$ exit
logout
Server sent command exit status 0
All channels closed. Disconnecting
Server closed network connection

C:\Temp\tramp


___
Tramp-devel mailing list
Tramp-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/tramp-devel