1827703 Members
2855 Online
109967 Solutions
New Discussion

Re: copy file

 
Debasis Mishra
Occasional Advisor

copy file

i have a file in unix. I want to copy from Unix environment to windows environment. How can i copy.
11 REPLIES 11
Arunvijai_4
Honored Contributor

Re: copy file

Hi Debasis,

What do you want to copy from Unix to Windows ? Give us some more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Prabu.S_1
Trusted Contributor

Re: copy file

Hi,
Transefering files between machines can be either done using FTP or SCP.
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Arunvijai_4
Honored Contributor

Re: copy file

OK, You can do it with FTP.

Open Command prompt in Windows,

C:\>ftp
Connected to your_unix_server.
220 your_unix_server FTP server (Version 1.1.214.4(PHNE_30432) Thu Feb 26 10
:46:14 GMT 2004) ready.
User (server): root
331 Password required for root.
Password:
230 User root logged in.
ftp> ascii
ftp> get

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: copy file

Use ftp with put command or do ftp from windows machine to unix and use get command. Use binary mode always.

--
Muthu
Easy to suggest when don't know about the problem!
Patrice Le Guyader
Respected Contributor

Re: copy file

Hi,

Otherwise you can enable a share filesystem between unix and windows by installing samba on your unix server.If it's only one occasional transfer there is as Senthil said scp and sftp too.

Look at this link for samba on HPUX:

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

Look at this link if you want a small soft for doing both ssh and sftp with only one connection from windows:

http://www.ssh.com/support/downloads/secureshellwks/non-commercial.html

Hope this helps
Kenavo
Pat
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Peter Godron
Honored Contributor

Re: copy file

Debasis,
if you do not want to use ftp, you could :
1. Cut and paste the file via a X term session
2. mailx the file to yourself and save onto the windows box.

Arturo Galbiati
Esteemed Contributor

Re: copy file

Hi,
the ftp command on UNIX or any ftp tool on windows, to FTP command on windowd in cmd windows: start-> run-> cmd

HTH,
Art
Sivakumar TS
Honored Contributor

Re: copy file

Hi,

ftp is the best option.

Regards,

Siva.
Nothing is Impossible !
James R. Ferguson
Acclaimed Contributor

Re: copy file

Hi Debasis:

Be aware that if you are transferring a *text* file from Unix to Windows with FTP, you want to do an ASCII type transfer. UNIX uses newline characters to delimit lines. Windows uses a carriage-return plus linefeed (newline) combination.

If you use an ASCII transfer (moving either way) the translation will be made automatically for you, which is generally what you want.

For binary data, or no translation, do the FTP transfer in BINARY.

Should you encounter a file on your Unix platform with ^M$ characters at the end, you can strip the carriage-return (^M) with the 'dos2ux' utility. Conversely, there is a 'ux2dos' variation to perform the inverse. See the manpages for 'dos2ux' for more information.

Regards!

...JRF...
Chan 007
Honored Contributor

Re: copy file

Debasis,

Use FTP as suggested by others.

People are helping you to solve your problem, but it required some remarks from you by providing marks to those who helped you...at present your status is

"I have assigned points to 0 of 36 responses to my questions"

Chan

Debasis Mishra
Occasional Advisor

Re: copy file

Arun,S.Prabu,Muthu,P.L.Guyader,Peter,A.Galbiati,Sivakumar,James,Chan,

Thanks to all for help me in this regard.