Solved

Copying a text file from Solaris to XP

Posted on 2006-11-21
4
280 Views
Last Modified: 2013-12-27
I am trying to copy a text file containing Oralce insert statements from Solaris 9 to XP, however, when I do the copy using WINscp3 the text is being wrapped. If I do a
cat filename | mail to_me

Then the text is being wrapped too. However, if I vi into the file from Solaris and do a copy paste with mouse from the vi editor  into an SQLNav editor then the insert is not wrapped. I cannot copy all the data this way becuase I can only scroll up a certain amount of data in vi. Does anyone have any ideas as to how I can copy this file accross without it wrapping? Thanks for the help.
0
Comment
Question by:bencouve2
4 Comments
 
LVL 6

Assisted Solution

by:bpeterse
bpeterse earned 167 total points
ID: 17988881
Try Filezilla - open source and quite the handy tool.  Displays permissions on both machines as well. It doesn't do scp but it does handleftp and sftp well....

http://sourceforge.net/projects/filezilla
0
 
LVL 48

Accepted Solution

by:
Tintin earned 167 total points
ID: 17989921
You can copy it using your existing methods if you do

unix2dos filename filename

first.
0
 
LVL 38

Assisted Solution

by:wesly_chen
wesly_chen earned 166 total points
ID: 18006294
Or use "wordpad" on XP to open the text file and save it again.
0
 

Author Comment

by:bencouve2
ID: 18012785
I think that you are probably all right. I have found a solution but as always I am very grateful for your input. For the records and incase anyone has the same issue, what I did was gave the script an sql extension, like this myfile.sql, on the solaris os and then copied it accross to the xp os and it did not wrap the text. So, there is anther solution. Thanks for the input. I am going to split the points. Thanks again.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
pauing printer deamon in AIX 10 63
Linux : adding the new user with password option, 11 113
What are recommended OS for exim mail server? 10 116
help pulling data string using Awk 9 80
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question