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 Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 12:20 PM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 06: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 07:57 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 12:39 PM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 01:59 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-30-2002
wolf wolf is offline
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
  #2 (permalink)  
Old 10-30-2002
workingstiff workingstiff is offline
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 (permalink)  
Old 10-30-2002
wolf wolf is offline
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 (permalink)  
Old 10-30-2002
vikas_sri vikas_sri is offline
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.
  #5 (permalink)  
Old 10-30-2002
Vishnu Vishnu is offline
Registered User
  
 

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

Cheers!
Vishnu.
  #6 (permalink)  
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0