SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    FTP Command Line Parameters?

    Hi there,

    I have a regular need to transfer several files from various places to various other places. I'd like to automate the process and therefore wondered if there were a way of kicking off an FTP transfer without needing to physically log into FTP or an FTP Client to submit the commands.

    F'rinstance, if I can kick off each transfer from the command line, then I can create a shell script / batch file to transfer the lot.

    I'm expecting there to be a way of doing something like:
    ftp source_machine user/pass put source_file target_machine user/pass target_file
    I may be wanting the moon on a stick though


    Cheers,

    Andy
    From the English nation to a US location.

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2002
    Location
    Utah
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You may want to checkout ncftp's ncftpget and ncftpput utilities.

    Works something like this:
    ncftpput -E -u user -p pass domain remote/dir/ file_to_transfer

  3. #3
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by deadserious
    You may want to checkout ncftp's ncftpget and ncftpput utilities.
    That's absolutely perfect! Just what I was looking for

    I downloaded the NcFTP W32 Client, glanced at the examples in the NcFTPPut documentation and five minutes later I was up and running. Now I can set jobs off to copy new versions of our software to my server before I arrive at work in the morning.

    NcFTP Homepage


    Many thanks,

    Andy
    From the English nation to a US location.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •