At 2007-04-19 14:48 +0200, Michael Albinus wrote:
Plink does not allow to overwrite all options via the command line,
indeed. But the following seems to work:
plink -t -l user host TERM=dumb /bin/sh
The patch below introduces a new method "plinkx". This shall work also
with your "xterm-configured" sessions.
That only works with a Bourne type default shell on the target.
plink -t -l user host env TERM=dumb /bin/sh
is more portable, AFAIK.
Actually there are a number of items that can be set in the PuTTY
session registry that are not easily available on the command line:
TERM, other environment variables, remote command. Perhaps it would
be better to have a "plinks" method with tramp-login-args of
(("-load" "%h")). This would broaden the meaning of "host" in Tramp
syntax, so the documentation would need updating. Alternatively
introduce %s for session into the login-args syntax.
--
Pete Forman -./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
[EMAIL PROTECTED] -./\.- the opinion of Schlumberger or
http://petef.port5.com -./\.- WesternGeco.
_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel