Ftp from UNIX to windows share


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Ftp from UNIX to windows share
# 1  
Old 07-16-2013
Ftp from UNIX to windows share

Unix Expects,

I am trying to connect to Unix server to windows share point using ftp or fstp. I want to get excel file from windows share to unix server.
But i am not able to do it. Can you please help me on this. Smilie

Cheers
# 2  
Old 07-16-2013
You haven't given us much information (such as Windows version, etc) but talking generically, you need IIS installed (with the ftp option checked) on Windows for it to be a ftp server. Then you can specify the ftp default (home) directory.

You will probably find it easier to make Unix the ftp server and use Windows as the client.

More information please.
# 3  
Old 07-16-2013
My share would be,

//test1000/Sample

test.xls

This is the windows path where i will place my excel file (test.xls)

Now i want to get this file to my unix server using shell script.

Let me know if you need more details.

Thanks,
# 4  
Old 07-16-2013
On Windows: When you install IIS you can select the 'ftp' option. Then you can configure the default directory that ftp will use. You can either put the file you wish to collect via ftp into that directory, or change directory (cd) inside ftp after you have connected.

On Unix: You can script the file collection job by calling ftp inside the script. You'll find it easier to utilise ".netrc" (google that) to hold the credentials of the Windows login. Writing the script is then quite straightforward.
# 5  
Old 07-16-2013
Quote:
Originally Posted by AraR87
My share would be,

//test1000/Sample
share != FTP

If you want to connect to a windows share using UNIX, you will need to tell us which UNIX. Linux has the CIFS driver to do this, which lets you

Code:
mount -t cifs //192.168.0.173/Sample /path/to/mountpoint -o username=Neil,password="neil",uid=1004,gid=100

cp /path/to/mountpoint/fileIwant /path/to/wherever

umount /path/to/mountpoint

# 6  
Old 07-16-2013
I generally work from the windows side:
start, programs, accessories, command prompt
Code:
cd source directory
ftp unix box ip address
login
password 
cd destination
binary
put file
bye


Last edited by Scott; 07-29-2013 at 09:51 AM.. Reason: Code tags
# 7  
Old 07-29-2013
As you use windows why dont you just do the schedule task over there and use this

Using FTP Batch Scripts
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 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. Shell Programming and Scripting

ftp from unix to windows

How to do ftp from unix to windows i have some files in a dir in unix box and i want to put those files in windows through FTP. How to do this ? (9 Replies)
Discussion started by: ali560045
9 Replies

6. UNIX for Dummies Questions & Answers

Windows to UNIX FTP

Good Morning, I am currently having a setup of running a batch file in windows to ftp certain files to unix and after that one i login to a unix box to manually run a script to clean up those files and combine them into one and get go back to windows to run another batch of file to get the... (4 Replies)
Discussion started by: ryan_estiya
4 Replies

7. UNIX for Advanced & Expert Users

Help mounting Windows share in UNIX

We recently upgraded one of our engineering servers, and now the lone UNIX box that houses older CAD files can not connect to it. I have tried every variation of mount I can find, but to no avail. Help is appreciated. Here are the specs: Server: Windows 2003 x64 with Unix Services for Windows... (8 Replies)
Discussion started by: shatterstorm
8 Replies

8. UNIX for Advanced & Expert Users

How to Mount a Unix share drive on Windows

We are trying to mount a Unix share drive on a Windows 2003 server to avoid transfering files accross the network using sftp. I can see shared drives on the Solaris server using the "share" command. How can I mount the drives on my Windows server so that I can read them directly. Do I need... (2 Replies)
Discussion started by: rbdenham
2 Replies

9. Linux

how i can share the file between unix or linux in windows ??

hello everybody i have one quetion :( about how i can share my file in windows to use it in linux explane i have to opreating system windows xp and linux fedore core and unix ( sun solaris 10 ) and i want to open me file that is storege in windows <<< want to open it in unix or... (4 Replies)
Discussion started by: msn22
4 Replies

10. UNIX for Dummies Questions & Answers

ftp from unix to windows

Hi, I have been using ftp to transfer files back and forth between windows and unix machines. But everytime i started the ftp session from the windows machine. I have a question why I am not able to connect to the same windows machine from the same unix machine. How do I do this? ... (11 Replies)
Discussion started by: oldtrash
11 Replies
Login or Register to Ask a Question