[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: restart after disconnect
From: |
Kai Grossjohann |
Subject: |
Re: restart after disconnect |
Date: |
Sun, 28 Mar 2004 16:16:15 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) |
Tim Connors <address@hidden> writes:
> $ test -e /home/office/tconnors/.followup 2>/dev/null; echo
> tramp_exit_status $?
> tramp_exit_status 0
> $ tramp_file_attributes /home/office/tconnors/.followup nil
> (nil 1 738 273 (16484 19385) (16484 19384) (16484 19385) 5098 33188 t (72
> . 17617) -1)
> $ chmod 0600 /home/office/tconnors/.followup 2>/dev/null; echo
> tramp_exit_status $?
> tramp_exit_status 0
> # Opening connection for address@hidden using nil...
> # Waiting for prompts from remote shell
> # Waiting 60s for prompt from remote shell
> # Found remote shell prompt.
> # Initializing remote shell
> $ echo are you awake
> are you awake
> sh-2.05b$ [[Remote prompt `^///229d01f110132f1770f3634b44911b82
> ?$' not found in 10 secs]]# Opening connection for address@hidden using
> nil...
Ayee. Hm. It is totally confused at this point. For example, the
are you awake thing shouldn't be sent when opening a connection.
Hm. The fact that it waits for a Tramp prompt instead of the
non-Tramp shell prompt is probably a follow-on error.
I wonder whether it is sufficient to turn off the are you awake thing?
Hm. *looking* Yeah, I found a spot where it sends commands to the
remote host *with* awakeness time checking, but as we're in the
process of opening a connection, this should be turned off. Please
try this patch:
--- tramp.el.~2.349.~ Sun Mar 28 16:10:19 2004
+++ tramp.el Sun Mar 28 16:12:32 2004
@@ -4985,7 +4985,7 @@
(erase-buffer)
(tramp-message 10 "Sending command to remote shell: %s"
cmd)
- (tramp-send-command multi-method method user host cmd)
+ (tramp-send-command multi-method method user host cmd nil t)
(tramp-barf-if-no-shell-prompt
p 60 "Remote shell command failed: %s" cmd))
(erase-buffer)))
Kai