ftp from NT to UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users ftp from NT to UNIX
# 1  
Old 10-30-2002
Question ftp from NT to UNIX

PROBLEM !!!!!!!

I have files that is on a NT machine. It is located in a directory with subdirectories underneath it. TAR can not be used.

I need to use a normal ftp command script to transfer these files from NT to UNIX, or get it from the UNIX machine, including the subdirectories. It must be interactive as well, so the -i option must be used.

Anybody that can help with a script for this problem, please, it would be of great help.

Wolf
Smilie
# 2  
Old 10-30-2002
if you have terminal emulation software eg. Reflections for Unix then you get an FTP Client which is a windows gui interface and makes ftp between NT, Windows(all versions), DOS, Unix to Unix etc very simple. You would simply map to the NT pc from your own machine , then in the terminal emulator you would choose the mapped drive on the left side of your screen - on the right side of your screen it provides a logon to the Unix machine - then the ftp is a simple as click click.

On the other hand, you could put the ip address and host name of the NT pc onto your Unix box in the /etc/hosts file. Then use a script something like this :-

ftp -in ntpcname <<!
user username password
bin
mput filenametobeftped*
bye
!

where :-
ntpcname - is the name of your nt pc
username is a valid user name on your nt pc
password is the password of that user
filenametobeftped* is the name of the file/s to be ftp's ( obviously it would be mget if the files are going the other way).

This will put the files into your default ftp directory on your nt pc (if you don't know where this is - try one file and see where it goes by searching on the nt)
If you're doing this from Unix and want to get the files from NT then you should be in the directory that you want the files to go to.
Ensure that you chmod the script file so that it is execuatable (eg. chmod 777 scriptfilename).

GOOD LUCK
Smilie
# 3  
Old 10-30-2002
Ok, this is a normal ftp. I want a script with ftp subdirectories as well, I do not want to change directory every time all files is ftp from one directory, and now I must do a lcd or cd.

A script that will get the files from Nt machine to Unix box, including the subdirectories with a FTP command.
# 4  
Old 10-30-2002
You can download "Windows Commander" from download.com. This is very useful explorer for ftping across operating system.
FTP command itself does not support recursive ftp.

I use commander which is very effective.
# 5  
Old 10-30-2002
you may want to try rcp

Cheers!
Vishnu.
# 6  
Old 10-30-2002
look up .netrc files for automated ftp also look into scp part of the ssh tools.

samba could also be used as could the freeware winrar which can read tar files.

Kie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Help with FTP in UNIX

Hi All, I am a beginner in Unix, wanted to know can we FTP one file located in one server to the another server location using Putty. The destination would require user ID and password to access the location. Also, the file that needs to be picked up should have the date of previous day. ... (1 Reply)
Discussion started by: richa shukla
1 Replies

2. Shell Programming and Scripting

FTP from windows to unix server using unix shell script

Hi, Is it possible to ftp a huge zip file from windows to unix server using unix shell scripting? If so what command i need to use. thanks in advance. (1 Reply)
Discussion started by: Shri123
1 Replies

3. Shell Programming and Scripting

UNIX script to FTP file from UNIX server to windows

Hi, I am new to this subject.....Can someone please help me out with the script... unix usernm "sdhftst" unix pwd "chsd13" windows usernm "dfghtst" windows pwd "chsd13" path..../xxx/xxxxx/xxxxxx/xxxxxxx please can u get me a script...its only one file to get ftp. Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies

4. Shell Programming and Scripting

ftp from windows to unix using a perl script on unix machine

i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies

5. UNIX for Advanced & Expert Users

MVS->Unix FTP : Using chmod as part of FTP.

We are transferring file from mainframes to unix, & in FTP process itself we would like to set access rights for unix machine. Has anyone used chmod command in association with site command in ftp? How it should be used? Thanks in advance. (1 Reply)
Discussion started by: videsh77
1 Replies

6. Shell Programming and Scripting

FTP script to FTP file to UNIX - Solaris

Hello, A couple of times per week, i receive emails notifications when files are available for processing. Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies

7. UNIX for Dummies Questions & Answers

Pc to unix ftp

Hello guys..I am new to Unix, I am trying to transfer a .txt file from my windows PC to my Unix account at school using ftp. I am kind of stuck, can anybody explain to me the steps to do this? (1 Reply)
Discussion started by: Aristo
1 Replies

8. Shell Programming and Scripting

FTP script for sending a file from one unix directory to another unix server director

Hi, My local server is :/usr/abcd/ Remote server is :/Usr/host/test/ I want to send files from local unix directory(All files starting with O_999) to remote host unix directory. Can any body give me the Unix Shell script to do this. One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies

9. UNIX for Advanced & Expert Users

ftp on unix

Hi I'm running a batch file that open an ftp connection to UNIX at the same time i wont to run script its write "invalid command" Ofra (1 Reply)
Discussion started by: ofra
1 Replies

10. UNIX for Advanced & Expert Users

ftp from unix to pc

Hi All, How can I get a file as soon as generated into the unix server, it should get transferred into my pc? my pc connected to novell, and I know the ip address of my pc and unix server. reply to : ::email removed:: regards krishna (2 Replies)
Discussion started by: krishna
2 Replies
Login or Register to Ask a Question