Carriage return character added automatically
- From: Ziv <ziv@xxxxxxxx>
- Date: Tue, 30 Jan 2007 00:07:00 -0800 (PST)
I have a problem concerning text files.
I use a Java package (SSHTools) to connect over SSH from an application
running on a Windows machine to a Linux machine. After connecting I use the
LESS command to perform some operations on a text file located on the Linux
My problem is that the carriage return character is added to the end of each
line if it is missing (if only the line feed character exists, it is
automatically "padded" with a carriage return character).
I'm trying to disable this, because it causes me some trouble (I use the
LESS prompt in order to find out the byte offset of the current window, and
this number does not match the number of bytes sent to my client over the
The problem is that I don't understand who adds this character - the
candidates I can this of are:
1) The LESS function.
2) The host machine.
3) The SSH protocol.
4) The Java package I use.
Please advise on how this can be solved, it is a real pain.
Thanks a lot,
View this message in context: http://www.nabble.com/Carriage-return-character-added-automatically-tf3141041.html#a8705465
Sent from the SSH (Secure Shell) mailing list archive at Nabble.com.
- Prev by Date: Re: AllowUser, DenyUser don't work.
- Next by Date: openssh outbound client connection logging.
- Previous by thread: AllowUser, DenyUser don't work.
- Next by thread: openssh outbound client connection logging.