Re: Using tar in forced ssh command?
From: Klaus-Dieter Ost (kdo_at_no-spam-to-smo.de)
Date: 02/22/05
- Previous message: Simon Tatham: "Re: Using tar in forced ssh command?"
- In reply to: Simon Tatham: "Re: Using tar in forced ssh command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 22 Feb 2005 21:05:53 +0100
Simon Tatham schrieb:
> Michael Heiming <michael+USENET@www.heiming.de> wrote:
>
>>For the archives, solved! The trick is to simply add ",no-pty"
>>directly behind 'command="...."', go figure...;)
>
>
> Ah yes, of course! Because the pty layer must be doing something
> silly with line endings: converting an LF sent to the terminal by
> the application into the CR+LF required to display correctly on a
> VT terminal emulator. That'd certainly do bad things to binary data
> such as bz2.
In addition to this, w/o "no-pty", the ssh channel behaves like a "real
tty", where both stderr and stdout use a single output stream. The tar
archive that you are writing on your local system will therefore also
contain the (verbose) output of your tar command. With no-pty, the ssh
client on the local side offers both output channels.
-- ------------------------------ Dipl.-Inform. Klaus-Dieter Ost kdo (at) smo.de Unix Solaris AIX - C++ Java sh Software Design Documentation ------------------------------
- Previous message: Simon Tatham: "Re: Using tar in forced ssh command?"
- In reply to: Simon Tatham: "Re: Using tar in forced ssh command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]