![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
you may want to try rcp
Cheers! Vishnu. |
|
#6
|
|||
|
|||
|
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 |