LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cygwin scp problem (https://www.linuxquestions.org/questions/linux-newbie-8/cygwin-scp-problem-746456/)

dexznrl 08-10-2009 09:37 AM

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

jschiwal 08-10-2009 10:02 AM

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.

jdkaye 08-10-2009 10:03 AM

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.