cygwin scp problem
Hello,
I'm trying to copy a file from cygwin to centos via scp. All files that I'm sending over ends up with som strange caracters at the end. Like "?" and "^M". Does anybody know why? Best regards Johan |
You are sending Windows text files. They end in \n\r. Linux files end in \n. You can use the "dos2unix" command to convert them. Always convert config files and make files.
There was an option when you installed cygwin asking which kind of text files to use in cygwin itself. |
Yes, Windows files have a slightly different way of ending lines. *nix based systems use LF but Windows uses LF+CR that's the ^M you're seeing. I don't know about the "?".
Cheers, jdk |
All times are GMT -5. The time now is 12:08 AM. |