FTP

hi..
is it possible to write an ftp script that transfers data from debian os
to a window os.

if so, how do i go abt writing the script?

thanks
TPolyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

avizitCommented:
What kind of setup you are talking bout ?

the windows machine is running the ftp server  and the debian is running the ftp client .. in that it should be possible to use any of the ftp script that has been put in this techinical area

if what you have is a server on Debian and an ftp client on your windows machine . then I am not sure , cos in that case you are looking into whatever facilitiues are there in Windows to automate ftp ..( I think there are some fancy ftp clients in windows world which lets you have some kind of automation but dont take my word for it :)

0
avizitCommented:
I can see from your past questions , that you already know how to write a ftp script which runs on a linux machine and can be used to transfile file  to/from a ftp server  which can be any system .windows /linux whatever ..
so the first case of using the linux machine as client and windows as server is done .


for second casewhere your ftp server is on the linux machine , i did a cursory search on google and came up with this

http://support.microsoft.com/?kbid=96269

basically you need to write a script file say

test.ftp  with following content

open ftpserver.com
user
userid
password
put file1
get file2  
quit

and run it as
ftp -s:test.ftp



0
TPolyAuthor Commented:
hi..
jus want to know can the debian ftp be a server and client at the same time?

eg

Server - transfer the files from rvsi machine to this server

Client - let the server in the window os to get files from here

thanks
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

avizitCommented:
ftp server and client are two different programs

so you can run both on your debian machine

andthen it can act as a ftp server and also you can connect to another machine running an ftp server using the ftp client.
0
TPolyAuthor Commented:
is there any difference in writing the script on the client side n the server side
thanks
0
avizitCommented:
These scripts are for he ftp client

and also in ftp the connection is initiated by the ftp client

the server runs waiting for connections from the client
so the ftp client connects to the server and makes a request as in send a file or receive etc
and the server performs
hence these scripts has to be clientscripts


hence  if you are running your ftp server on the windows machine you will use the linux client i.e the script you wpudl use on a linux machine

on the other hand ifthe ftp server is on the linux machine and you are connecting from a windows machine you should use the script i have shown above
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux OS Dev

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.