The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch iBot UNIX and Linux RSS News 0 12-19-2007 09:20 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 02:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 04:57 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 08:39 AM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 10:59 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-30-2002
Registered User
 

Join Date: Jul 2001
Location: South Africa
Posts: 20
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
Forum Sponsor
  #2  
Old 10-30-2002
Registered User
 

Join Date: Oct 2002
Posts: 3
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
  #3  
Old 10-30-2002
Registered User
 

Join Date: Jul 2001
Location: South Africa
Posts: 20
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
Registered User
 

Join Date: Oct 2002
Location: United Kingdom
Posts: 9
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.
__________________
Thanks
Vikas Srivastava
  #5  
Old 10-30-2002
Registered User
 

Join Date: Aug 2002
Location: Marlboro, MA
Posts: 114
you may want to try rcp

Cheers!
Vishnu.
  #6  
Old 10-30-2002
kie kie is offline
Registered User
 

Join Date: Oct 2002
Location: England
Posts: 34
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
__________________
Kie
Unix bod
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0