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. :confused:

Cheers

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.

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,

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.

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

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

I generally work from the windows side:
start, programs, accessories, command prompt

cd source directory
ftp unix box ip address
login
password 
cd destination
binary
put file
bye

As you use windows why dont you just do the schedule task over there and use this

Using FTP Batch Scripts