Posted on 2004-10-26
Last Modified: 2010-04-22
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?

Question by:TPoly
    LVL 11

    Expert Comment

    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 :)

    LVL 11

    Expert Comment

    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

    basically you need to write a script file say

    test.ftp  with following content

    put file1
    get file2  

    and run it as
    ftp -s:test.ftp


    Author Comment

    jus want to know can the debian ftp be a server and client at the same time?


    Server - transfer the files from rvsi machine to this server

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

    LVL 11

    Expert Comment

    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.

    Author Comment

    is there any difference in writing the script on the client side n the server side
    LVL 11

    Accepted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now