Daniel Pittman <[EMAIL PROTECTED]> writes:
> (let ((tries 5))
> (while tries
> (rcp-send-command "echo rcp-unique-string")
> (rcp-wait-for-output 5)
> (if (not (string-match (regexp-quote "rcp-unique-string")
> (buffer-substring (point-min) (point-max))))
> (setq tries (- 1 tries))
> ;; shell is active
> (setq tries 0))))
Yeah, I also thought about that. Hitting RET every couple of seconds
is what I do, after all.
But Stefan had an even better suggestion: just start up the shell with
its normal shell prompt, then wait for the shell prompt to appear. I
think that's the route I'm going to go through. Currently, you have
to use two different methods for ssh, depending on whether ssh
requires you to enter a password or not. But I think using the new
method, it would be fairly easy to just look whether there is a passwd
prompt and then act accordingly.
I don't think I'm going to support the asking-for-a-passwd feature of
scp, though.
kai
--
Life is hard and then you die.