Topic "feil perfect with winscp, and totally messed up with SCP on Unix"

Author Message
newbie

Guest


Hello. I have been using winscp to send my files over to a Unix server, and everything has been perfect. We installed scp on our unix biox, and when I send the file across from Unix to Unix, the file is garbaldeegook! Confused Is there something specific that I ahve set up in WinSCP that I am missing on my Unix SCP? Any help would be appreaciated!
Thanks.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
What is "garbaldeegook"? Smile What do you do to transfer the file?
_________________
Martin Prikryl
newbie

Guest


It shows all of the carriage returns and tabs as strange characters. Someone told me that I need to use this command right before I SCP

unix2dos filename

Only problem is that we don't have unix2dos installed on our Unix box, so is there any other way around this?
newbie

Guest


Sorry,
I noticed that I did not answer your question.
IN my Unix script I use this command:

scp -P 222 -B filename userid@99.99.999.999:incoming/filename.`date +'%Y%m%d'`
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
unix2dos is useful to convert file before transfering it to dos/windows machine. As you transfer it unix-to-unix, there's no need for it. Well, maybe you have it in dos format on the first unix already, however you edit/view it with tool that knows dos-format too, while after trasfering to the second unix, you edit/view it with tool that knows only unix format.

As last chance (if the file is really in dos format), to do the conversion, download file to windows using WinSCP in "binary" mode and upload id back in "text/ascii" mode. It should do the conversion for you.

Note that command line scp does not do any conversion of the file, so I doubt that it garbled the file.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License